/** @test */ public function it_deletes_rejected_resources() { $post = $this->createPost([$this->status_column => Status::REJECTED]); $postDel = Post::withRejected()->where('id', $post->id)->first(); $postDel->delete(); $this->dontSeeInDatabase('posts', ['id' => $post->id]); }