Remove unneeded data from card details
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -295,7 +295,11 @@ class ActivityManagerTest extends TestCase {
|
||||
$this->assertEquals([
|
||||
'stack' => $stack,
|
||||
'board' => $board,
|
||||
'card' => $card
|
||||
'card' => [
|
||||
'id' => $card->getId(),
|
||||
'title' => $card->getTitle(),
|
||||
'archived' => $card->getArchived()
|
||||
]
|
||||
], $this->invokePrivate($this->activityManager, 'findDetailsForCard', [555]));
|
||||
}
|
||||
|
||||
@@ -329,7 +333,11 @@ class ActivityManagerTest extends TestCase {
|
||||
$this->assertEquals([
|
||||
'stack' => $stack,
|
||||
'board' => $board,
|
||||
'card' => $card,
|
||||
'card' => [
|
||||
'id' => $card->getId(),
|
||||
'title' => $card->getTitle(),
|
||||
'archived' => $card->getArchived()
|
||||
],
|
||||
'attachment' => $attachment
|
||||
], $this->invokePrivate($this->activityManager, 'findDetailsForAttachment', [777]));
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ class FilterTest extends TestCase {
|
||||
|
||||
public function testFilterTypes() {
|
||||
$data = ['deck_board', 'deck_card'];
|
||||
$this->assertEquals($data, $this->filter->filterTypes($data));
|
||||
$this->assertEquals(array_merge($data, ['deck_comment']), $this->filter->filterTypes($data));
|
||||
}
|
||||
|
||||
public function testAllowedApps() {
|
||||
|
||||
Reference in New Issue
Block a user