You are here

public function LanguageInterfaceContextTest::testOnPageContext in Page Manager 8.4

@covers ::onPageContext

File

tests/src/Unit/LanguageInterfaceContextTest.php, line 50

Class

LanguageInterfaceContextTest
Tests the current language interface context.

Namespace

Drupal\Tests\page_manager\Unit

Code

public function testOnPageContext() {
  $this->page
    ->addContext('language_interface', Argument::type(Context::class))
    ->shouldBeCalled();
  $language_interface_context = new LanguageInterfaceContext($this->contextRepository);
  $language_interface_context
    ->onPageContext($this->event);
}