backend/tests/unit/MenusTest.php
//criar, editar e eliminar na DB
criar, editar e eliminar na DB
criar editar e eliminar na DB
function testSavingMenu()
    {
        $menu = new Menus();
        $menu->restaurantId = 1;
        $menu->date = '2022-12-20';
        $menu->save(false);
        $this->tester->seeInDatabase('menus', ["restaurantId" => "1", "date" => "2022-12-20"]);
    }
function testSavingMenu ( ) { $ menu = new Menus ( ) ; $ menu -> restaurantId = 1 ; $ menu -> date = '2022-12-20' ; $ menu -> save ( false ) ; $ this -> tester -> seeInDatabase ( 'menus' , [ " restaurantId " => " 1 " , " date " => " 2022-12-20 " ] ) ; }
criar, editar e eliminar na DB
criar editar e eliminar na DB