[BridgeImplementationTest] Implement feature for testing detectParameters method

This commit is contained in:
Eugene Molotov 2021-06-05 09:19:07 +05:00
parent a18af3952d
commit c580219627
2 changed files with 9 additions and 0 deletions

View file

@ -75,6 +75,11 @@ abstract class BridgeAbstract implements BridgeInterface {
*/ */
const PARAMETERS = array(); const PARAMETERS = array();
/**
* Test cases for detectParameters for the bridge
*/
const TEST_DETECT_PARAMETERS = array();
/** /**
* Holds the list of items collected by the bridge * Holds the list of items collected by the bridge
* *

View file

@ -135,6 +135,10 @@ class BridgeImplementationTest extends TestCase {
} }
} }
foreach($this->obj::TEST_DETECT_PARAMETERS as $url => $params) {
$this->assertEquals($this->obj->detectParameters($url), $params);
}
$this->assertTrue(true); $this->assertTrue(true);
} }