예제 #1
0
 public function testDeletingCustomNewsCategoryWithPosts()
 {
     $news = News::addNews(StringMocks::SampleTitleOne, StringMocks::LargeContent, $this->player_with_create_perms->getId(), $this->newsCategory->getId());
     $this->assertArrayLengthEquals($this->newsCategory->getNews(), 1);
     $this->newsCategory->delete();
     $this->assertEquals('enabled', $this->newsCategory->getStatus());
     $this->assertArrayContainsModel($this->newsCategory, NewsCategory::getCategories());
     $this->wipe($news);
 }