mirror of
https://gitlab.com/izyim/prototypes/ddd-example.git
synced 2026-08-25 07:24:13 +00:00
Create User Zone
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Integration;
|
||||
|
||||
use GuzzleHttp\Client;
|
||||
use Tests\TestCase;
|
||||
|
||||
class DoodleAPITest extends TestCase
|
||||
{
|
||||
/** @test */
|
||||
public function get_doodle_avatar()
|
||||
{
|
||||
$url = 'https://doodleipsum.com/300/avatar-2?shape=circle';
|
||||
$response = (new Client())->get($url);
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertEquals('image/png', $response->getHeader('Content-Type')[0]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user