You are here

public function SqlRedirectNotFoundStorageTest::testInvalidUtf8Path in Redirect 8

Tests that invalid UTF-8 paths are not stored in the database.

File

modules/redirect_404/tests/src/Unit/SqlRedirectNotFoundStorageTest.php, line 54

Class

SqlRedirectNotFoundStorageTest
Tests that overly long paths aren't logged.

Namespace

Drupal\Tests\redirect_404\Unit

Code

public function testInvalidUtf8Path() {
  $this->database
    ->expects($this
    ->never())
    ->method('merge');
  $storage = new SqlRedirectNotFoundStorage($this->database, $this
    ->getConfigFactoryStub());
  $storage
    ->logRequest("", LanguageInterface::LANGCODE_DEFAULT);
}