Skip to content
Snippets Groups Projects

Issue #2707689: NodeForm::actions() checks for delete access on new entities

2 files
+ 13
13
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -148,8 +148,8 @@ public function testShortcutLinkAdd() {
* Tests that the "add to shortcut" and "remove from shortcut" links work.
*/
public function testShortcutQuickLink() {
\Drupal::service('theme_installer')->install(['seven']);
$this->config('system.theme')->set('admin', 'seven')->save();
\Drupal::service('theme_installer')->install(['claro']);
$this->config('system.theme')->set('admin', 'claro')->save();
$this->config('node.settings')->set('use_admin_theme', '1')->save();
$this->container->get('router.builder')->rebuild();
@@ -197,7 +197,7 @@ public function testShortcutQuickLink() {
$this->clickLink('Add to Default shortcuts');
$this->assertSession()->pageTextContains('Added a shortcut for Create Article.');
$this->config('system.theme')->set('default', 'seven')->save();
$this->config('system.theme')->set('default', 'claro')->save();
$this->drupalGet('node/' . $this->node->id());
$title = $this->node->getTitle();
@@ -315,9 +315,9 @@ public function testShortcutLinkDelete() {
*/
public function testNoShortcutLink() {
// Change to a theme that displays shortcuts.
\Drupal::service('theme_installer')->install(['seven']);
\Drupal::service('theme_installer')->install(['claro']);
$this->config('system.theme')
->set('default', 'seven')
->set('default', 'claro')
->save();
$this->drupalGet('page-that-does-not-exist');
@@ -343,9 +343,9 @@ public function testNoShortcutLink() {
*/
public function testAccessShortcutsPermission() {
// Change to a theme that displays shortcuts.
\Drupal::service('theme_installer')->install(['seven']);
\Drupal::service('theme_installer')->install(['claro']);
$this->config('system.theme')
->set('default', 'seven')
->set('default', 'claro')
->save();
// Add cron to the default shortcut set.
Loading