diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Actions/ActionImplementationTest.php | 2 | ||||
-rw-r--r-- | tests/Actions/ListActionTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Actions/ActionImplementationTest.php b/tests/Actions/ActionImplementationTest.php index 3f063682..bf5dc4f9 100644 --- a/tests/Actions/ActionImplementationTest.php +++ b/tests/Actions/ActionImplementationTest.php @@ -40,7 +40,7 @@ class ActionImplementationTest extends TestCase $this->setAction($path); - $methods = get_class_methods($this->obj); + $methods = array_diff(get_class_methods($this->obj), ['__construct']); sort($methods); $this->assertEquals($allowedMethods, $methods); diff --git a/tests/Actions/ListActionTest.php b/tests/Actions/ListActionTest.php index 437f184f..5056050e 100644 --- a/tests/Actions/ListActionTest.php +++ b/tests/Actions/ListActionTest.php @@ -49,7 +49,7 @@ class ListActionTest extends TestCase $bridgeFactory = new BridgeFactory(); $this->assertEquals( - count($bridgeFactory->getBridgeNames()), + count($bridgeFactory->getBridgeClassNames()), count($items['bridges']), 'Number of bridges doesn\'t match' ); |