Page MenuHomeDevCentral

ProjectsMapFactoryTest.php
No OneTemporary

ProjectsMapFactoryTest.php

<?php
namespace Nasqueron\Notifications\Tests\Phabricator;
use Nasqueron\Notifications\Tests\TestCase;
class ProjectsMapFactoryTest extends TestCase {
/**
* @var \Nasqueron\Notifications\Phabricator\ProjectsMapFactory
*/
private $factory;
public function setUp () {
parent::setUp();
$this->factory = $this->app->make('phabricator-projectsmap');
$this->mockPhabricatorAPIForProjectsMap();
}
public function testLoadProjectsMap () {
$this->assertInstanceOf(
'\Nasqueron\Notifications\Phabricator\ProjectsMap',
$this->factory->load("Acme")
);
}
public function testFetchProjectsMap () {
$this->assertInstanceOf(
'\Nasqueron\Notifications\Phabricator\ProjectsMap',
$this->factory->fetch("Acme")
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Feb 28, 20:14 (8 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436615
Default Alt Text
ProjectsMapFactoryTest.php (853 B)

Event Timeline