|
@@ -30,9 +30,9 @@ discard block |
|
|
block discarded – undo |
|
30
|
30
|
|
|
31
|
31
|
public function testCanReadEvents(): void |
|
32
|
32
|
{ |
|
33
|
|
- $_ENV['GITLAB_PATTERN']= self::TICKET_PATTERN; |
|
|
33
|
+ $_ENV['GITLAB_PATTERN'] = self::TICKET_PATTERN; |
|
34
|
34
|
$activityDtoCollection = $this->createGitlabActivityPlugin()->collect(); |
|
35
|
|
- static::assertSame(self::TICKET_PATTERN.'-1234', $activityDtoCollection->offsetGet(0)->needle); |
|
|
35
|
+ static::assertSame(self::TICKET_PATTERN . '-1234', $activityDtoCollection->offsetGet(0)->needle); |
|
36
|
36
|
static::assertSame('Entwicklungsprozess: TESTNR-1234 (commented on)', $activityDtoCollection->offsetGet(0)->description); |
|
37
|
37
|
static::assertSame('2021-01-01', $activityDtoCollection->offsetGet(0)->created->format('Y-m-d')); |
|
38
|
38
|
static::assertSame(GitlabActivityPlugin::ACTIVITY_DURATION, $activityDtoCollection->offsetGet(0)->duration); |
|
@@ -46,7 +46,7 @@ discard block |
|
|
block discarded – undo |
|
46
|
46
|
; |
|
47
|
47
|
|
|
48
|
48
|
$testEvent1 = new \stdClass(); |
|
49
|
|
- $testEvent1->target_title = self::TICKET_PATTERN.'-1234'; |
|
|
49
|
+ $testEvent1->target_title = self::TICKET_PATTERN . '-1234'; |
|
50
|
50
|
$testEvent1->action_name = GitlabActivityPlugin::ALLOWED_ACTION_NAMES[0]; |
|
51
|
51
|
$testEvent1->created_at = '2021-01-01 00:00:00'; |
|
52
|
52
|
|
Please login to merge, or discard this patch.