Page MenuHomeDevCentral

D285.id671.diff
No OneTemporary

D285.id671.diff

diff --git a/tests/Analyzers/Phabricator/ProjetGroupMappingTest.php b/tests/Analyzers/Phabricator/ProjetGroupMappingTest.php
new file mode 100644
--- /dev/null
+++ b/tests/Analyzers/Phabricator/ProjetGroupMappingTest.php
@@ -0,0 +1,45 @@
+<?php
+
+namespace Nasqueron\Notifications\Tests\Analyzers;
+
+use Nasqueron\Notifications\Analyzers\Phabricator\ProjectGroupMapping;
+use Nasqueron\Notifications\Tests\TestCase;
+
+class ProjectGroupMappingTest extends TestCase {
+ public function testdoesProjectMatch () {
+ $this->assertTrue(
+ ProjectGroupMapping::doesProjectMatch(
+ 'quux*',
+ 'quuxians'
+ )
+ );
+
+ $this->assertTrue(
+ ProjectGroupMapping::doesProjectMatch(
+ 'quux*',
+ 'quux'
+ )
+ );
+
+ $this->assertFalse(
+ ProjectGroupMapping::doesProjectMatch(
+ 'foobar',
+ 'quux'
+ )
+ );
+
+ $this->assertFalse(
+ ProjectGroupMapping::doesProjectMatch(
+ '',
+ 'quuxians'
+ )
+ );
+
+ $this->assertFalse(
+ ProjectGroupMapping::doesProjectMatch(
+ 'quux*',
+ ''
+ )
+ );
+ }
+}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 09:21 (21 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262320
Default Alt Text
D285.id671.diff (1 KB)

Event Timeline