public function TestBaseTest::testRandomStringValidate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/tests/src/Unit/TestBaseTest.php \Drupal\Tests\simpletest\Unit\TestBaseTest::testRandomStringValidate()
@covers ::randomStringValidate @dataProvider providerRandomStringValidate
File
- core/
modules/ simpletest/ tests/ src/ Unit/ TestBaseTest.php, line 85 - Contains \Drupal\Tests\simpletest\Unit\TestBaseTest.
Class
- TestBaseTest
- @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest
Namespace
Drupal\Tests\simpletest\UnitCode
public function testRandomStringValidate($expected, $string) {
$mock_test_base = $this
->getMockForAbstractClass('Drupal\\simpletest\\TestBase');
$actual = $mock_test_base
->randomStringValidate($string);
$this
->assertEquals($expected, $actual);
}