public function testShouldDeleteIfAllCheckPointsPassed()
 {
     $user = $this->createUserAndLoggedIn(array('Blog.manage' => 1, 'Blog.delete' => 1));
     $createdContent = $this->createDummyData($user);
     // begin
     $result = $this->commandDispatcher->dispatchFromArray('Darryldecode\\Backend\\Components\\ContentBuilder\\Commands\\DeleteContentCommand', array('id' => $createdContent->id));
     $this->assertTrue($result->isSuccessful());
     $this->assertEquals(200, $result->getStatusCode());
     $this->assertEquals('Blog content successfully deleted.', $result->getMessage());
     // there should be no contents now
     $this->assertCount(0, Content::all()->toArray(), 'There should be no contents now');
 }