/** @test */ public function it_should_get_specific_category_id_if_all_parameters_are_present() { $this->assertSame(Category::where('category', 'loan.status')->where('name', 'canceled')->first()->getAttribute('id'), Category::getCategories('loan.status', 'canceled', true)); $this->assertSame(Category::where('category', 'loan.type')->where('name', 'interview')->first()->getAttribute('id'), Category::getCategories('loan.type', 'interview', true)); $this->assertSame(Category::where('category', 'property')->where('name', 'classroom')->first()->getAttribute('id'), Category::getCategories('property', 'classroom', true)); }