Page MenuHomeDevCentral

D286.diff
No OneTemporary

D286.diff

diff --git a/app/Analyzers/Phabricator/ProjectGroupMapping.php b/app/Analyzers/Phabricator/PhabricatorGroupMapping.php
rename from app/Analyzers/Phabricator/ProjectGroupMapping.php
rename to app/Analyzers/Phabricator/PhabricatorGroupMapping.php
--- a/app/Analyzers/Phabricator/ProjectGroupMapping.php
+++ b/app/Analyzers/Phabricator/PhabricatorGroupMapping.php
@@ -4,7 +4,7 @@
use Nasqueron\Notifications\Phabricator\PhabricatorStory;
-class ProjectGroupMapping {
+class PhabricatorGroupMapping {
///
/// Properties
///
diff --git a/app/Analyzers/Phabricator/PhabricatorPayloadAnalyzerConfiguration.php b/app/Analyzers/Phabricator/PhabricatorPayloadAnalyzerConfiguration.php
--- a/app/Analyzers/Phabricator/PhabricatorPayloadAnalyzerConfiguration.php
+++ b/app/Analyzers/Phabricator/PhabricatorPayloadAnalyzerConfiguration.php
@@ -20,7 +20,7 @@
/**
* An array of RepositoryGroupMapping objects to match repositories & groups
*
- * @var ProjectGroupMapping[]
+ * @var PhabricatorGroupMapping[]
*/
public $groupsMapping;
}
diff --git a/tests/Analyzers/Phabricator/ProjetGroupMappingTest.php b/tests/Analyzers/Phabricator/PhabricatorGroupMappingTest.php
rename from tests/Analyzers/Phabricator/ProjetGroupMappingTest.php
rename to tests/Analyzers/Phabricator/PhabricatorGroupMappingTest.php
--- a/tests/Analyzers/Phabricator/ProjetGroupMappingTest.php
+++ b/tests/Analyzers/Phabricator/PhabricatorGroupMappingTest.php
@@ -2,15 +2,15 @@
namespace Nasqueron\Notifications\Tests\Analyzers\Phabricator;
-use Nasqueron\Notifications\Analyzers\Phabricator\ProjectGroupMapping;
+use Nasqueron\Notifications\Analyzers\Phabricator\PhabricatorGroupMapping;
use Nasqueron\Notifications\Tests\TestCase;
-class ProjectGroupMappingTest extends TestCase {
+class PhabricatorGroupMappingTest extends TestCase {
use WithConfiguration;
/**
- * @var ProjectGroupMapping|]
+ * @var PhabricatorGroupMapping|]
*/
private $mappings;
@@ -41,35 +41,35 @@
public function testDoesProjectMatch () {
$this->assertTrue(
- ProjectGroupMapping::doesProjectMatch(
+ PhabricatorGroupMapping::doesProjectMatch(
'quux*',
'quuxians'
)
);
$this->assertTrue(
- ProjectGroupMapping::doesProjectMatch(
+ PhabricatorGroupMapping::doesProjectMatch(
'quux*',
'quux'
)
);
$this->assertFalse(
- ProjectGroupMapping::doesProjectMatch(
+ PhabricatorGroupMapping::doesProjectMatch(
'foobar',
'quux'
)
);
$this->assertFalse(
- ProjectGroupMapping::doesProjectMatch(
+ PhabricatorGroupMapping::doesProjectMatch(
'',
'quuxians'
)
);
$this->assertFalse(
- ProjectGroupMapping::doesProjectMatch(
+ PhabricatorGroupMapping::doesProjectMatch(
'quux*',
''
)

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 02:30 (21 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260062
Default Alt Text
D286.diff (3 KB)

Event Timeline