tests/Functional/OrdersControllerTest.php
/**
     * Should update an order in staging.
     *
     * @return void
     */
Should update an order in staging.
@return void
Should update an order in staging . @return void
public function testUpdateOrderSuccessful(): void
    {
        $payload = $this->getPayload();
        $mocked = \Mockery::mock(QuadxClientInterface::class);
        $mocked->shouldReceive('request')
            ->once()
            ->andReturn([
                'body' => 'some-body'
            ]);
        $this->app->instance(QuadxClientInterface::class, $mocked);
        $this->json('PUT', \sprintf('/orders/%s', '0164-6688-DAJS'), $payload);
        $this->assertResponseStatus(200);
    }
public function testUpdateOrderSuccessful ( ) : void { $ payload = $ this -> getPayload ( ) ; $ mocked = \ Mockery :: mock ( QuadxClientInterface :: class ) ; $ mocked -> shouldReceive ( 'request' ) -> once ( ) -> andReturn ( [ 'body' => 'some-body' ] ) ; $ this -> app -> instance ( QuadxClientInterface :: class , $ mocked ) ; $ this -> json ( 'PUT' , \ sprintf ( '/orders/%s' , '0164-6688-DAJS' ) , $ payload ) ; $ this -> assertResponseStatus ( 200 ) ; }
Should update an order in staging.
Should update an order in staging .