Skip to content

Commit e79fb19

Browse files
authored
Merge pull request #13 from tattersoftware/action-test
Test GitHub Action
2 parents 8ead436 + 257f941 commit e79fb19

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

tests/_support/AssetsTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ class AssetsTestCase extends CIUnitTestCase
99
* @var \Tatter\Assets\Libraries\Assets
1010
*/
1111
protected $assets;
12-
12+
1313
/**
1414
* @var \Tatter\Assets\Config\Assets
1515
*/
1616
protected $config;
17-
17+
1818
public function setUp(): void
1919
{
2020
parent::setUp();
21-
21+
2222
$this->config = new \Tatter\Assets\Config\Assets();
2323
$this->config->silent = false;
2424
$this->config->fileBase = SUPPORTPATH . 'assets/';
25-
25+
2626
// Create the service
2727
$this->assets = new Assets($this->config);
2828
}

tests/assets/DirectoryHandlerTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function testDefaultRoute()
2222
];
2323

2424
$paths = $this->assets->getPaths();
25+
sort($paths);
2526

2627
$this->assertEquals($expected, $paths);
2728
}
@@ -32,12 +33,13 @@ public function testBasicRoute()
3233

3334
$expected = [
3435
'alert.js',
35-
'styles.css',
36-
'factories/factories.css',
3736
'factories/edit/validate.js',
37+
'factories/factories.css',
38+
'styles.css',
3839
];
3940

4041
$paths = $this->assets->getPaths();
42+
sort($paths);
4143

4244
$this->assertEquals($expected, $paths);
4345
}
@@ -52,6 +54,7 @@ public function testBasicRouteWithoutAssets()
5254
];
5355

5456
$paths = $this->assets->getPaths();
57+
sort($paths);
5558

5659
$this->assertEquals($expected, $paths);
5760
}
@@ -62,12 +65,13 @@ public function testBasicRouteWithImplictAssets()
6265

6366
$expected = [
6467
'alert.js',
65-
'styles.css',
6668
'factories/factories.css',
6769
'factories/index/factoriesDataTable.js',
70+
'styles.css',
6871
];
6972

7073
$paths = $this->assets->getPaths();
74+
sort($paths);
7175

7276
$this->assertEquals($expected, $paths);
7377
}

0 commit comments

Comments
 (0)