Verified Commit 85aee30a authored by Dave Long's avatar Dave Long
Browse files

Issue #3351089 by Spokje: Fix PHPStan L1 errors "@dataProvider Foo related method not found."

parent bef31d1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ class LogTest extends MigrateProcessTestCase {
  /**
   * Tests the Log plugin.
   *
   * @dataProvider providerTestLog()
   * @dataProvider providerTestLog
   */
  public function testLog($value, $expected_message) {
    // Test the expected log message.
+1 −1
Original line number Diff line number Diff line
@@ -280,7 +280,7 @@ public function providerTestUserRole() {
   *   contains the source role id, an array of valid permissions and an array
   *   of invalid permissions.
   *
   * @dataProvider providerTestUserRole()
   * @dataProvider providerTestUserRole
   */
  public function testUserRole(array $modules, array $migrations, array $role_data) {
    if ($modules) {
+0 −40
Original line number Diff line number Diff line
@@ -1850,11 +1850,6 @@ parameters:
			count: 1
			path: modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php

		-
			message: "#^@dataProvider providerTestLog\\(\\) related method not found\\.$#"
			count: 1
			path: modules/migrate/tests/src/Unit/process/LogTest.php

		-
			message: "#^Variable \\$sub_process_plugins might not be defined\\.$#"
			count: 2
@@ -2705,11 +2700,6 @@ parameters:
			count: 1
			path: modules/user/tests/src/Functional/Views/UserChangedTest.php

		-
			message: "#^@dataProvider providerTestUserRole\\(\\) related method not found\\.$#"
			count: 1
			path: modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php

		-
			message: "#^Variable \\$result in isset\\(\\) always exists and is not nullable\\.$#"
			count: 1
@@ -3520,11 +3510,6 @@ parameters:
			count: 1
			path: tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php

		-
			message: "#^@dataProvider providerTestValidateHex\\(\\) related method not found\\.$#"
			count: 1
			path: tests/Drupal/Tests/Component/Utility/ColorTest.php

		-
			message: "#^@coversDefaultClass defined on class method testHtmlClass\\.$#"
			count: 1
@@ -3575,11 +3560,6 @@ parameters:
			count: 1
			path: tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php

		-
			message: "#^@dataProvider providerTestGetMachineNameSuggestion\\(\\) related method not found\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Block/BlockBaseTest.php

		-
			message: "#^Missing call to parent\\:\\:setUp\\(\\) method\\.$#"
			count: 1
@@ -3645,16 +3625,6 @@ parameters:
			count: 1
			path: tests/Drupal/Tests/Core/Controller/TitleResolverTest.php

		-
			message: "#^@dataProvider dataProviderTestCompileWithKnownOperators\\(\\) related method not found\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Database/ConditionTest.php

		-
			message: "#^@dataProvider providerSimpleCondition\\(\\) related method not found\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Database/ConditionTest.php

		-
			message: "#^Missing call to parent\\:\\:setUp\\(\\) method\\.$#"
			count: 1
@@ -3680,11 +3650,6 @@ parameters:
			count: 1
			path: tests/Drupal/Tests/Core/Database/OrderByTest.php

		-
			message: "#^@dataProvider providerTestExceptionMessage\\(\\) related method not found\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Database/RowCountExceptionTest.php

		-
			message: "#^Missing call to parent\\:\\:setUp\\(\\) method\\.$#"
			count: 1
@@ -3730,11 +3695,6 @@ parameters:
			count: 1
			path: tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php

		-
			message: "#^@dataProvider providerTestGetTableMappingSimple\\(\\) related method not found\\.$#"
			count: 8
			path: tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php

		-
			message: "#^Missing call to parent\\:\\:setUp\\(\\) method\\.$#"
			count: 1
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ class ColorTest extends TestCase {
   * @param string $value
   *   The hex color value.
   *
   * @dataProvider providerTestValidateHex()
   * @dataProvider providerTestValidateHex
   */
  public function testValidateHex($expected, $value) {
    $this->assertSame($expected, Color::validateHex($value));
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ class BlockBaseTest extends UnitTestCase {
   * @param string $expected
   *   The expected machine name.
   *
   * @dataProvider providerTestGetMachineNameSuggestion()
   * @dataProvider providerTestGetMachineNameSuggestion
   */
  public function testGetMachineNameSuggestion($label, $expected) {
    $module_handler = $this->createMock('Drupal\Core\Extension\ModuleHandlerInterface');
Loading