mirror of
https://github.com/brunofontes/Memsource-API.git
synced 2024-11-23 19:00:50 +00:00
22 lines
543 B
PHP
22 lines
543 B
PHP
|
<?php
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
use BrunoFontes\Memsource;
|
||
|
|
||
|
final class ProjectTest extends TestCase
|
||
|
{
|
||
|
public function testNoTokenShouldThrowError()
|
||
|
{
|
||
|
$api = new Memsource('fakeToken');
|
||
|
$this->expectException(\Exception::class);
|
||
|
$api->project()->list();
|
||
|
}
|
||
|
public function testInvalidProjectUidShouldThrowError()
|
||
|
{
|
||
|
$api = new Memsource('fakeToken');
|
||
|
$this->expectException(\Exception::class);
|
||
|
$api->project()->get('invalidProjectUid');
|
||
|
}
|
||
|
}
|