Unverified Commit 01b2e5a4 authored by alexpott's avatar alexpott
Browse files

Issue #3155760 by Hardik_Patel_12: Replace assertions involving calls to...

Issue #3155760 by Hardik_Patel_12: Replace assertions involving calls to array_key_exists() with assertArrayHasKey()
parent 50e58a9f
...@@ -314,7 +314,7 @@ public function testGetAllRoutes() { ...@@ -314,7 +314,7 @@ public function testGetAllRoutes() {
$this->assertEqual($expected_route_count, count($returned_routes)); $this->assertEqual($expected_route_count, count($returned_routes));
foreach ($returned_routes as $route_name => $route) { foreach ($returned_routes as $route_name => $route) {
$this->assertTrue(array_key_exists($route_name, $sample_routes)); $this->assertArrayHasKey($route_name, $sample_routes);
$this->assertEquals($route->getPath(), $sample_routes[$route_name]['path']); $this->assertEquals($route->getPath(), $sample_routes[$route_name]['path']);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment