protected function ParagraphsLibraryItemTest::assertLibraryItemAccess in Paragraphs 8
Asserts HTTP response codes for library item operations.
1 call to ParagraphsLibraryItemTest::assertLibraryItemAccess()
- ParagraphsLibraryItemTest::testLibraryItemsAccessControl in modules/
paragraphs_library/ tests/ src/ Functional/ ParagraphsLibraryItemTest.php - Tests the library items permissions in different scenarios.
File
- modules/
paragraphs_library/ tests/ src/ Functional/ ParagraphsLibraryItemTest.php, line 127
Class
- ParagraphsLibraryItemTest
- Tests the functionality of the Paragraphs Library.
Namespace
Drupal\Tests\paragraphs_library\FunctionalCode
protected function assertLibraryItemAccess($library_item_id, $response_code, $operation) {
$this
->drupalGet("admin/content/paragraphs/{$library_item_id}/{$operation}");
$this
->assertSession()
->statusCodeEquals($response_code);
}