Skip to content

Commit bb7d87a

Browse files
committed
Build restful paths for every test class
1 parent 82678f4 commit bb7d87a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
"psr-4" : {
3535
"PhpPlatform\\Tests\\" : "tests/"
3636
}
37-
}
37+
},
38+
"license" : "Apache-2.0"
3839
}

src/Tests/RestfulUnit/ServiceTestCase.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use PhpPlatform\Mock\Config\MockSettings;
66
use PhpPlatform\Session\Factory;
7+
use PhpPlatform\RESTFul\Routing\Build;
78

89
/**
910
* This class provides utility methods to be called from a TestCase setupMethods to enable a TestCase for testing a service
@@ -12,7 +13,7 @@
1213
class ServiceTestCase {
1314

1415
static function setUpBeforeClass(){
15-
16+
Build::run();
1617
}
1718

1819
static function setUp(){

0 commit comments

Comments
 (0)