Skip to content

Commit 03e0a1a

Browse files
authored
Merge pull request #18 from tattersoftware/test-trait
Assets Test Trait
2 parents cba1db3 + 05cd11f commit 03e0a1a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/Test/PublishersTestCase.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
namespace Tatter\Frontend\Test;
44

5-
use Tatter\Assets\Test\TestCase;
5+
use CodeIgniter\Test\CIUnitTestCase;
6+
use Tatter\Assets\Test\AssetsTestTrait;
67
use Tatter\Frontend\FrontendPublisher;
78

8-
abstract class PublishersTestCase extends TestCase
9+
abstract class PublishersTestCase extends CIUnitTestCase
910
{
11+
use AssetsTestTrait;
12+
1013
/**
1114
* @dataProvider publisherProvider
1215
*

tests/FrontendPublisherTest.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<?php
22

3-
use Tatter\Assets\Test\TestCase;
3+
use CodeIgniter\Test\CIUnitTestCase;
4+
use Tatter\Assets\Test\AssetsTestTrait;
45
use Tatter\Frontend\FrontendPublisher;
56

67
/**
78
* @internal
89
*/
9-
final class FrontendPublisherTest extends TestCase
10+
final class FrontendPublisherTest extends CIUnitTestCase
1011
{
12+
use AssetsTestTrait;
13+
1114
public function testPublisherThrowsWithoutPath()
1215
{
1316
$this->expectException('DomainException');

0 commit comments

Comments
 (0)