public function testToggleGoal() { $skill = \Tsny\Models\Skill::find(1); $this->post('api/skill/1/toggle'); $this->seeInDatabase('skills', ['id' => 1, 'current' => !$skill->current]); $this->post('api/skill/1/toggle'); $this->seeInDatabase('skills', ['id' => 1, 'current' => $skill->current]); }