mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 20:19:42 +08:00
Remove test of data providers, and replace expectNotToPerformAssertions() to assertTrue(true) for code coverage.
This commit is contained in:
@ -376,7 +376,8 @@ class UrlRuleTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider testGetCreateUrlStatusProvider
|
||||
* @dataProvider getCreateUrlStatusProvider
|
||||
*
|
||||
* @param array $ruleConfig
|
||||
* @param array $tests
|
||||
*/
|
||||
@ -413,10 +414,8 @@ class UrlRuleTest extends TestCase
|
||||
* - second element is the expected URL
|
||||
* - third element is the expected result of getCreateUrlStatus() method
|
||||
*/
|
||||
public function testGetCreateUrlStatusProvider()
|
||||
public static function getCreateUrlStatusProvider()
|
||||
{
|
||||
$this->expectNotToPerformAssertions();
|
||||
|
||||
return [
|
||||
'single controller' => [
|
||||
// rule properties
|
||||
|
||||
Reference in New Issue
Block a user