Skip to content

Commit f4d4da6

Browse files
committed
Updated to 1.1.7 version
1 parent 23da634 commit f4d4da6

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

tests/ScriptsTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -194,27 +194,27 @@ public function testIfScriptsAddedCorrectly()
194194
$asset = $this->Asset;
195195

196196
$this->assertTrue(
197-
$Asset::isAdded('script', 'script-first')
197+
$asset::isAdded('script', 'script-first')
198198
);
199199

200200
$this->assertTrue(
201-
$Asset::isAdded('script', 'script-second')
201+
$asset::isAdded('script', 'script-second')
202202
);
203203

204204
$this->assertTrue(
205-
$Asset::isAdded('script', 'script-third')
205+
$asset::isAdded('script', 'script-third')
206206
);
207207

208208
$this->assertTrue(
209-
$Asset::isAdded('script', 'script-fourth')
209+
$asset::isAdded('script', 'script-fourth')
210210
);
211211

212212
$this->assertTrue(
213-
$Asset::isAdded('script', 'script-fifth')
213+
$asset::isAdded('script', 'script-fifth')
214214
);
215215

216216
$this->assertTrue(
217-
$Asset::isAdded('script', 'script-sixth')
217+
$asset::isAdded('script', 'script-sixth')
218218
);
219219
}
220220

@@ -226,11 +226,11 @@ public function testRemoveAddedScripts()
226226
$asset = $this->Asset;
227227

228228
$this->assertTrue(
229-
$Asset::remove('script', 'script-first')
229+
$asset::remove('script', 'script-first')
230230
);
231231

232232
$this->assertTrue(
233-
$Asset::remove('script', 'script-second')
233+
$asset::remove('script', 'script-second')
234234
);
235235
}
236236

@@ -242,11 +242,11 @@ public function testValidationAfterDeletion()
242242
$asset = $this->Asset;
243243

244244
$this->assertFalse(
245-
$Asset::isAdded('script', 'script-first')
245+
$asset::isAdded('script', 'script-first')
246246
);
247247

248248
$this->assertFalse(
249-
$Asset::isAdded('script', 'script-second')
249+
$asset::isAdded('script', 'script-second')
250250
);
251251
}
252252

@@ -257,7 +257,7 @@ public function testOutputFooterScripts()
257257
{
258258
$asset = $this->Asset;
259259

260-
$scripts = $Asset::outputScripts('footer');
260+
$scripts = $asset::outputScripts('footer');
261261

262262
$this->assertContains(
263263
"<script src='https://jst.com/js/script.js'></script>",
@@ -277,7 +277,7 @@ public function testOutputHeaderScripts()
277277
{
278278
$asset = $this->Asset;
279279

280-
$scripts = $Asset::outputScripts('header');
280+
$scripts = $asset::outputScripts('header');
281281

282282
$this->assertContains(
283283
"<script src='https://jst.com/js/custom.js'></script>",
@@ -298,7 +298,7 @@ public function testOutputWhenNotFooterScriptsLoaded()
298298
$asset = $this->Asset;
299299

300300
$this->assertFalse(
301-
$Asset::outputScripts('footer')
301+
$asset::outputScripts('footer')
302302
);
303303
}
304304

@@ -310,7 +310,7 @@ public function testOutputWhenNotHeaderScriptsLoaded()
310310
$asset = $this->Asset;
311311

312312
$this->assertFalse(
313-
$Asset::outputScripts('header')
313+
$asset::outputScripts('header')
314314
);
315315
}
316316
}

tests/UnifyFilesTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ public function testOutputStylesAndScripts()
251251
*/
252252
public function testIfUnifiedFilesWasCreated()
253253
{
254-
$asset = $this->Asset;
255-
256254
$styleOne = 'custom.css';
257255
$styleTwo = 'style.css';
258256

0 commit comments

Comments
 (0)