Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12373563
PhabricatorProjectsMapTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
908 B
Referenced Files
None
Subscribers
None
PhabricatorProjectsMapTest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Console\Commands
;
use
Nasqueron\Notifications\Config\Services\Service
;
class
PhabricatorProjectsMapTest
extends
TestCase
{
/**
* @var string
*/
protected
$class
=
'Nasqueron
\N
otifications
\C
onsole
\C
ommands
\P
habricatorProjectsMap'
;
public
function
setUp
()
{
parent
::
setUp
();
$service
=
$this
->
mockService
(
'Phabricator'
);
$this
->
mockServices
()
->
shouldReceive
(
'getForGate'
)
->
once
()
->
andReturn
([
$service
]);
$this
->
mockPhabricatorAPIForProjectsMap
();
}
public
function
testRegularExecute
()
{
$this
->
tester
->
execute
([
'command'
=>
$this
->
command
->
getName
()]);
$this
->
assertRegexp
(
'/PHID.*Project name/'
,
$this
->
tester
->
getDisplay
());
$this
->
assertRegexp
(
'/PHID-PROJ-cztcgpvqr6smnnekotq7.*Agora/'
,
$this
->
tester
->
getDisplay
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 1, 17:53 (1 d, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3121665
Default Alt Text
PhabricatorProjectsMapTest.php (908 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment