Page MenuHomeDevCentral

PhabricatorStoryTest.php
No OneTemporary

PhabricatorStoryTest.php

<?php
namespace Nasqueron\Notifications\Tests\Phabricator;
use Nasqueron\Notifications\Phabricator\PhabricatorStory;
use Nasqueron\Notifications\Tests\TestCase;
class PhabricatorStoryTest extends TestCase {
/**
* @dataProvider provideStories
*/
public function testGetObjectType ($expected, $data) {
$story = new PhabricatorStory('acme');
$story->data = $data;
$this->assertEquals($expected, $story->getObjectType());
}
public function provideStories () : iterable {
yield ["VOID", null];
yield ["VOID", []];
yield ["VOID", ['foo' => 'bar']];
yield ["TASK", ['objectPHID' => 'PHID-TASK-l34fw5wievp6n6rnvpuk']];
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, May 15, 11:58 (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3713186
Default Alt Text
PhabricatorStoryTest.php (700 B)

Event Timeline