tests/PlayerTest.php
/**
     *Test for get single players
     *
     * @return void
     */
Test for get single players
@return void
Test for get single players @return void
public function testGetSinglePlayer()
    {
        $structure = array (["id","team_id","f_name","l_name","imageuri","jersey_number","country","created_at","updated_at"]);
        $this->get('api/player/1', ['access_token' => env('ACCESS_TOKEN')]);
        $this->seeStatusCode(200);
        $this->seeJsonStructure($structure);
    }
public function testGetSinglePlayer ( ) { $ structure = array ( [ " id " , " team_id " , " f_name " , " l_name " , " imageuri " , " jersey_number " , " country " , " created_at " , " updated_at " ] ) ; $ this -> get ( 'api/player/1' , [ 'access_token' => env ( 'ACCESS_TOKEN' ) ] ) ; $ this -> seeStatusCode ( 200 ) ; $ this -> seeJsonStructure ( $ structure ) ; }
Test for get single players
 @return void
Test for get single players @return void