function test_save() { $name = "Nike"; $test_brand = new brand($name, $id); $test_brand->save(); $result = Brand::getAll(); $this->assertEquals($test_brand, $result[0]); }
function test_save() { $name = "Nike"; $test_brand = new brand($name, $id); $test_brand->save(); $result = Brand::getAll(); $this->assertEquals($test_brand, $result[0]); }