public function TestBaseTest::testAssertNotNull in Drupal 8
@covers ::assertNotNull @dataProvider providerAssertNull
File
- core/
modules/ simpletest/ tests/ src/ Unit/ TestBaseTest.php, line 271
Class
- TestBaseTest
- @requires extension curl @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest @group TestBase
Namespace
Drupal\Tests\simpletest\UnitCode
public function testAssertNotNull($expected, $value) {
$test_base = $this
->getTestBaseForAssertionTests('test_id');
$this
->assertEquals(!$expected, $this
->invokeProtectedMethod($test_base, 'assertNotNull', [
$value,
]));
}