Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3942461
SiteTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
581 B
Referenced Files
None
Subscribers
None
SiteTest.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Nasqueron\SAAS\PhpBB\Tests\SitesRepository
;
use
Nasqueron\SAAS\PhpBB\SitesRepository\Site
;
use
PHPUnit\Framework\TestCase
;
use
InvalidArgumentException
;
class
SiteTest
extends
TestCase
{
public
function
testSetId
()
{
$site
=
new
Site
;
$site
->
setId
(
'acme'
);
$this
->
assertEquals
(
'acme'
,
$site
->
getId
());
}
public
function
testSetIdWithInvalidIdentifiant
()
{
$this
->
expectException
(
InvalidArgumentException
::
class
);
$site
=
new
Site
;
$site
->
setId
(
'invalid acme'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Dec 26, 16:27 (19 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315205
Default Alt Text
SiteTest.php (581 B)
Attached To
Mode
rSAASPHPBB saas-phpbb helper command
Attached
Detach File
Event Timeline
Log In to Comment