public function test_if_tag_can_be_persisted() { $tag = Tag::create(['name' => 'Tag 1']); $this->assertEquals('Tag 1', $tag->name); $tag = Tag::all()->first(); $this->assertEquals('Tag 1', $tag->name); $this->assertEquals('tag-1', $tag->slug); }
public function test_can_force_delete() { $tag = Tag::create(['name' => 'Tag Test']); $tag->forceDelete(); $this->assertCount(0, Tag::all()); }