drupalLogin($this->drupalCreateUser(['administer actions'])); // Ensure the empty text appears on the action list page. /** @var $storage \Drupal\Core\Entity\EntityStorageInterface */ $storage = $this->container->get('entity.manager')->getStorage('action'); $actions = $storage->loadMultiple(); $storage->delete($actions); $this->drupalGet('/admin/config/system/actions'); $this->assertRaw('There is no Action yet.'); } }