You are here

public function RecursiveContextualValidatorTest::providerTestValidatePropertyWithInvalidObjects in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest::providerTestValidatePropertyWithInvalidObjects()
  2. 10 core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest::providerTestValidatePropertyWithInvalidObjects()

Provides data for testValidatePropertyWithInvalidObjects.

Return value

array

File

core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php, line 256
Contains \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest.

Class

RecursiveContextualValidatorTest
@coversDefaultClass \Drupal\Core\TypedData\Validation\RecursiveContextualValidator @group typedData

Namespace

Drupal\Tests\Core\TypedData

Code

public function providerTestValidatePropertyWithInvalidObjects() {
  $data = [];
  $data[] = [
    new \stdClass(),
  ];
  $data[] = [
    new TestClass(),
  ];
  $data[] = [
    $this
      ->createMock('Drupal\\Core\\TypedData\\TypedDataInterface'),
  ];
  return $data;
}