Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10813663
PhabricatorAPIFactoryTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
823 B
Referenced Files
None
Subscribers
None
PhabricatorAPIFactoryTest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Phabricator
;
use
Nasqueron\Notifications\Tests\TestCase
;
class
PhabricatorAPIFactoryTest
extends
TestCase
{
/**
* @var \Nasqueron\Notifications\Phabricator\ProjectsMapFactory
*/
private
$factory
;
public
function
setUp
()
{
parent
::
setUp
();
$this
->
factory
=
$this
->
app
->
make
(
'phabricator-api'
);
}
public
function
testGetAPI
()
{
$this
->
assertInstanceOf
(
'
\N
asqueron
\N
otifications
\P
habricator
\P
habricatorAPI'
,
$this
->
factory
->
get
(
"https://phabricator.acme.tld"
)
);
}
public
function
testGetAPIForProject
()
{
$this
->
assertInstanceOf
(
'
\N
asqueron
\N
otifications
\P
habricator
\P
habricatorAPI'
,
$this
->
factory
->
getForProject
(
"Acme"
)
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 29, 13:57 (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2760094
Default Alt Text
PhabricatorAPIFactoryTest.php (823 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment