public function LazyContextRepositoryTest::testInvalidContextId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Plugin/Context/LazyContextRepositoryTest.php \Drupal\Tests\Core\Plugin\Context\LazyContextRepositoryTest::testInvalidContextId()
@covers ::getRuntimeContexts @expectedException \InvalidArgumentException @expectedExceptionMessage You must provide the context IDs in the service_id}:{unqualified_context_id} format.
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ Context/ LazyContextRepositoryTest.php, line 77 - Contains \Drupal\Tests\Core\Plugin\Context\LazyContextRepositoryTest.
Class
- LazyContextRepositoryTest
- @coversDefaultClass \Drupal\Core\Plugin\Context\LazyContextRepository @group context
Namespace
Drupal\Tests\Core\Plugin\ContextCode
public function testInvalidContextId() {
$lazy_context_repository = new LazyContextRepository($this->container, [
'test_provider',
]);
$lazy_context_repository
->getRuntimeContexts([
'test_context',
'@test_provider:test_context1',
]);
}