public function TestBaseTest::testGetRandomGenerator in Drupal 8
@covers ::getRandomGenerator
File
- core/
modules/ simpletest/ tests/ src/ Unit/ TestBaseTest.php, line 462
Class
- TestBaseTest
- @requires extension curl @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest @group TestBase
Namespace
Drupal\Tests\simpletest\UnitCode
public function testGetRandomGenerator() {
$test_base = $this
->getTestBaseForAssertionTests('test_id');
$this
->assertInstanceOf('Drupal\\Component\\Utility\\Random', $this
->invokeProtectedMethod($test_base, 'getRandomGenerator', []));
}