Add /api/airlines and /api/airline/{id} #120

This commit is contained in:
Nabeel Shahzad
2018-01-06 15:13:33 -06:00
parent 46a411e27b
commit 2de8d9ed64
7 changed files with 95 additions and 24 deletions

View File

@@ -15,6 +15,8 @@ abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
*
* @var string
*/
public static $prefix = '/api';
protected $app;
protected $baseUrl = 'http://localhost';
protected $connectionsToTransact = ['testing'];
@@ -37,6 +39,15 @@ abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
];
}
/**
* Return the URL with the URI prefix
* @param $uri
* @return string
*/
public function u($uri) {
return self::$prefix . $uri;
}
public function __construct($name = null, array $data = [], $dataName = '') {
parent::__construct($name, $data, $dataName);
}