You are here

public function TestBaseTest::testRandomStringValidate in Drupal 8

@covers ::randomStringValidate @dataProvider providerRandomStringValidate

File

core/modules/simpletest/tests/src/Unit/TestBaseTest.php, line 82

Class

TestBaseTest
@requires extension curl @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest @group TestBase

Namespace

Drupal\Tests\simpletest\Unit

Code

public function testRandomStringValidate($expected, $string) {
  $mock_test_base = $this
    ->getMockForAbstractClass('Drupal\\simpletest\\TestBase');
  $actual = $mock_test_base
    ->randomStringValidate($string);
  $this
    ->assertEquals($expected, $actual);
}