backend/tests/unit/OrdersTest.php
//criar, editar e eliminar na DB
criar, editar e eliminar na DB
criar editar e eliminar na DB
function testSavingOrder()
    {
        $order = new Orders();
        $order->userId = 1;
        $order->date = '2020-02-02 20:20';
        $order->save(false);
        $this->tester->seeInDatabase('orders', ['date' => '2020-02-02 20:20']);
    }
function testSavingOrder ( ) { $ order = new Orders ( ) ; $ order -> userId = 1 ; $ order -> date = '2020-02-02 20:20' ; $ order -> save ( false ) ; $ this -> tester -> seeInDatabase ( 'orders' , [ 'date' => '2020-02-02 20:20' ] ) ; }
criar, editar e eliminar na DB
criar editar e eliminar na DB