Page MenuHomeDevCentral

D287.id676.diff
No OneTemporary

D287.id676.diff

diff --git a/tests/Analyzers/Phabricator/PhabricatorPayloadAnalyzerTest.php b/tests/Analyzers/Phabricator/PhabricatorPayloadAnalyzerTest.php
--- a/tests/Analyzers/Phabricator/PhabricatorPayloadAnalyzerTest.php
+++ b/tests/Analyzers/Phabricator/PhabricatorPayloadAnalyzerTest.php
@@ -29,9 +29,53 @@
);
}
+ public function testGetConfigurationFileName () {
+ $this->assertSame(
+ "PhabricatorPayloadAnalyzer/Nasqueron.json",
+ $this->analyzer->getConfigurationFileName()
+ );
+ }
+
+ public function testGetGroupWhereEventIsAdministrative () {
+ $this->markTestIncomplete(
+ "Not yet implemented feature. See T664."
+ );
+
+ $this->assertSame(
+ "orgz",
+ $this->analyzer->getGroup()
+ );
+ }
+
+ public function testGetGroupWhereStoryDoesntMatchAnything () {
+ $this->assertSame(
+ "nasqueron",
+ $this->analyzer->getGroup()
+ );
+ }
+
+ public function testGetGroupWhereStoryMatchesProject () {
+ $this->markTestIncomplete(
+ "Mock PhabricatorStory to query projects."
+ );
+ $this->story->projects = ['Docker images'];
+ $this->assertSame(
+ "docker",
+ $this->analyzer->getGroup()
+ );
+ }
+
+ public function testGetGroupWhereStoryMatchesWords () {
+ $this->story->text = "Review the cartography elements.";
+ $this->assertSame(
+ "tasacora",
+ $this->analyzer->getGroup()
+ );
+ }
+
public function testGetGroupWhereWordsAreStrong () {
$this->markTestIncomplete(
- "Not yet implemented feature. See D748."
+ "Not yet implemented feature. See T748."
);
$this->story->projects = ['Docker images'];

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 07:45 (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262167
Default Alt Text
D287.id676.diff (1 KB)

Event Timeline