Example #1
0
 /**
  * Make sure that superuser has access to delete the article.
  *
  * @depends testView
  */
 public function testDeleteAccess()
 {
     $path = new Path('node/' . self::$articleId . '/delete');
     $this->assertTrue($path->hasAccess(), 'Superuser does not have access to edit an article.');
     $articleObject = new Article(self::$articleId);
     $articleObject->verify($this);
     $this->assertTrue($articleObject->hasUpdateAccess(), "Superuser does not have access to create an article.");
 }