$this->drupalGet('node/1'); $assert_session->pageTextNotContains($file->label()); // Try to access file directly after it has been removed. Since a new
// revision was not created for the node the inline block is not in the
// layout of a previous revision of the node.
$this->drupalGet($private_href1); $assert_session->pageTextContains('You are not authorized to access this page'); $assert_session->pageTextNotContains($this->getFileSecret($file)); $this->assertFileExists($file_real_path);