function DatabaseEventsTest::testDisableInvalidEvent
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Database/DatabaseEventsTest.php \Drupal\Tests\Core\Database\DatabaseEventsTest::testDisableInvalidEvent()
@covers ::disableEvents
File
-
core/
tests/ Drupal/ Tests/ Core/ Database/ DatabaseEventsTest.php, line 73
Class
- DatabaseEventsTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Database%21Connection.php/class/Connection/11.x" title="Base Database API class." class="local">\Drupal\Core\Database\Connection</a>
Namespace
Drupal\Tests\Core\DatabaseCode
public function testDisableInvalidEvent() : void {
$this->expectException(\AssertionError::class);
$this->expectExceptionMessage('Event class bar does not exist');
$this->connection
->disableEvents([
'bar',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.