Page MenuHomeDevCentral

PhabricatorProjectsMapTest.php
No OneTemporary

PhabricatorProjectsMapTest.php

<?php
namespace Nasqueron\Notifications\Tests\Console\Commands;
use Nasqueron\Notifications\Config\Services\Service;
class PhabricatorProjectsMapTest extends TestCase {
/**
* @var string
*/
protected $class = 'Nasqueron\Notifications\Console\Commands\PhabricatorProjectsMap';
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

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)

Event Timeline