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');
$mock = $this->mockPhabricatorAPIForProjectsMap();
}
public function testLoadProjectsMap () {
$this->assertInstanceOf(
'\Nasqueron\Notifications\Phabricator\ProjectsMap',
$this->factory->load("https://phabricator.acme.tld")
);
}
public function testFetchProjectsMap () {
$this->assertInstanceOf(
'\Nasqueron\Notifications\Phabricator\ProjectsMap',
$this->factory->fetch("https://phabricator.acme.tld")
);
}
}

File Metadata

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

Event Timeline