Remove test of data providers, and replace expectNotToPerformAssertions() to assertTrue(true) for code coverage.

This commit is contained in:
Wilmer Arambula
2024-03-21 09:56:54 -03:00
parent 4b1281618a
commit 3357e64ee6
10 changed files with 27 additions and 34 deletions

View File

@ -2060,7 +2060,7 @@ EOD;
}
/**
* @dataProvider testGetInputIdDataProvider
* @dataProvider getInputIdDataProvider
*/
public function testGetInputId($attributeName, $inputIdExpected)
{
@ -2073,7 +2073,7 @@ EOD;
}
/**
* @dataProvider testGetInputIdByNameDataProvider
* @dataProvider getInputIdByNameDataProvider
*/
public function testGetInputIdByName($attributeName, $inputIdExpected)
{
@ -2182,10 +2182,8 @@ HTML;
$this->assertStringContainsString('placeholder="My placeholder: Name"', $html);
}
public function testGetInputIdDataProvider()
public static function getInputIdDataProvider()
{
$this->expectNotToPerformAssertions();
return [
[
'foo',
@ -2223,10 +2221,8 @@ HTML;
];
}
public function testGetInputIdByNameDataProvider()
public static function getInputIdByNameDataProvider()
{
$this->expectNotToPerformAssertions();
return [
[
'foo',