Page MenuHomeDevCentral

PhabricatorAPIFactoryTest.php
No OneTemporary

PhabricatorAPIFactoryTest.php

<?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(
'\Nasqueron\Notifications\Phabricator\PhabricatorAPI',
$this->factory->get("https://phabricator.acme.tld")
);
}
public function testGetAPIForProject () {
$this->assertInstanceOf(
'\Nasqueron\Notifications\Phabricator\PhabricatorAPI',
$this->factory->getForProject("Acme")
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jul 29, 13:57 (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2760094
Default Alt Text
PhabricatorAPIFactoryTest.php (823 B)

Event Timeline