Skip to content

Commit

Permalink
tests: fix phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Apr 3, 2023
1 parent 1cb3218 commit cf440db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/MinifykuTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ public function testLoadJsWithBaseJsUrlAndDirMinJs()

$result = $this->minifyku->load('all.min.js');

$this->assertSame('<script defer type="text/javascript" src="http://js.localhost/all.min.js?v=' . $this->ver['js'] . '"></script>' . PHP_EOL, $result);
$this->assertStringContainsString('<script defer type="text/javascript"', $result);
$this->assertStringContainsString('http://js.localhost/all.min.js?v=' . $this->ver['js'], $result);
}

public function testLoadCssWithBaseCssUrlAndDirMinCss()
Expand All @@ -210,7 +211,8 @@ public function testLoadCssWithBaseCssUrlAndDirMinCss()

$result = $this->minifyku->load('all.min.css');

$this->assertSame('<link rel="stylesheet" href="http://css.localhost/all.min.css?v=' . $this->ver['css'] . '">' . PHP_EOL, $result);
$this->assertStringContainsString('<link rel="stylesheet"', $result);
$this->assertStringContainsString('http://css.localhost/all.min.css?v=' . $this->ver['css'], $result);
}

public function testDeployJsWithDirMinJs()
Expand Down

0 comments on commit cf440db

Please sign in to comment.