Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10813484
PhabricatorAPITest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorAPITest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Phabricator
;
use
Nasqueron\Notifications\Phabricator\PhabricatorAPI
;
use
Nasqueron\Notifications\Tests\TestCase
;
class
PhabricatorAPITest
extends
TestCase
{
public
function
testForInstance
()
{
$this
->
assertInstanceOf
(
'
\N
asqueron
\N
otifications
\P
habricator
\P
habricatorAPI'
,
PhabricatorAPI
::
forInstance
(
"https://phabricator.acme.tld"
)
);
}
public
function
testForProject
()
{
$this
->
assertInstanceOf
(
'
\N
asqueron
\N
otifications
\P
habricator
\P
habricatorAPI'
,
PhabricatorAPI
::
forInstance
(
"https://phabricator.acme.tld"
)
);
}
/**
* @expectedException \RuntimeException
*/
public
function
testForInstanceWhere
()
{
PhabricatorAPI
::
forInstance
(
"https://notfound.acme.tld"
);
}
/**
* @expectedException \RuntimeException
*/
public
function
testForProjectWhenProjectDoesNotExist
()
{
PhabricatorAPI
::
forProject
(
"NotFound"
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 29, 13:54 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2760985
Default Alt Text
PhabricatorAPITest.php (1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment