public function StringBaseTest::testDeleteWithoutStorage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/tests/src/Unit/StringBaseTest.php \Drupal\Tests\locale\Unit\StringBaseTest::testDeleteWithoutStorage()
@covers ::delete @expectedException \Drupal\locale\StringStorageException @expectedExceptionMessage The string cannot be deleted because its not bound to a storage: test
File
- core/
modules/ locale/ tests/ src/ Unit/ StringBaseTest.php, line 34 - Contains \Drupal\Tests\locale\Unit\StringBaseTest.
Class
- StringBaseTest
- @coversDefaultClass \Drupal\locale\StringBase @group locale
Namespace
Drupal\Tests\locale\UnitCode
public function testDeleteWithoutStorage() {
$string = new SourceString([
'lid' => 1,
'source' => 'test',
]);
$string
->delete();
}