From d90b28a39984b4f79affd6fcfb1b309c4e8919f9 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 15 Jun 2021 10:20:57 -0600 Subject: [PATCH] fix jquery in tests --- tests/unit/Grav/Common/AssetsTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/unit/Grav/Common/AssetsTest.php b/tests/unit/Grav/Common/AssetsTest.php index aea7be291..57539a6f3 100644 --- a/tests/unit/Grav/Common/AssetsTest.php +++ b/tests/unit/Grav/Common/AssetsTest.php @@ -340,7 +340,7 @@ public function testAddingJSAssetPropertiesWithArrayFromCollection(): void $this->assets->reset(); $this->assets->addJs('jquery', ['loading' => 'async']); $js = $this->assets->js(); - self::assertSame('' . PHP_EOL, $js); + self::assertSame('' . PHP_EOL, $js); //Test priority too $this->assets->reset(); @@ -348,7 +348,7 @@ public function testAddingJSAssetPropertiesWithArrayFromCollection(): void $this->assets->addJs('test.js', ['loading' => 'async', 'priority' => 2]); $js = $this->assets->js(); self::assertSame('' . PHP_EOL . - '' . PHP_EOL, $js); + '' . PHP_EOL, $js); //Test multiple groups $this->assets->reset(); @@ -357,7 +357,7 @@ public function testAddingJSAssetPropertiesWithArrayFromCollection(): void $js = $this->assets->js(); self::assertSame('' . PHP_EOL, $js); $js = $this->assets->js('footer'); - self::assertSame('' . PHP_EOL, $js); + self::assertSame('' . PHP_EOL, $js); //Test adding array of assets //Test priority too @@ -365,7 +365,7 @@ public function testAddingJSAssetPropertiesWithArrayFromCollection(): void $this->assets->addJs(['jquery', 'test.js'], ['loading' => 'async']); $js = $this->assets->js(); - self::assertSame('' . PHP_EOL . + self::assertSame('' . PHP_EOL . '' . PHP_EOL, $js); } @@ -626,7 +626,7 @@ public function testAddAsyncJs(): void $this->assets->reset(); $this->assets->addAsyncJs('jquery'); $js = $this->assets->js(); - self::assertSame('' . PHP_EOL, $js); + self::assertSame('' . PHP_EOL, $js); } public function testAddDeferJs(): void @@ -634,7 +634,7 @@ public function testAddDeferJs(): void $this->assets->reset(); $this->assets->addDeferJs('jquery'); $js = $this->assets->js(); - self::assertSame('' . PHP_EOL, $js); + self::assertSame('' . PHP_EOL, $js); } public function testTimestamps(): void @@ -716,7 +716,7 @@ public function testGetCollections(): void { self::assertIsArray($this->assets->getCollections()); self::assertContains('jquery', array_keys($this->assets->getCollections())); - self::assertContains('system://assets/jquery/jquery-2.x.min.js', $this->assets->getCollections()); + self::assertContains('system://assets/jquery/jquery-3.x.min.js', $this->assets->getCollections()); } public function testExists(): void