Skip to content

Commit

Permalink
Remove check against cross_posts
Browse files Browse the repository at this point in the history
  • Loading branch information
froemken committed Jan 26, 2022
1 parent 3b5e38c commit 7fa124a
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions Tests/Functional/Service/WallsServiceTest.php
Expand Up @@ -183,49 +183,6 @@ public function getWallPostsWillReturnFreshWallPosts(): void
);
}

/**
* @test
*/
public function getWallPostsWillNotAddCrossPosts(): void
{
$data = [
'324125' => [
'id' => '324125',
'is_crosspost' => false
],
'534213' => [
'id' => '534213',
'is_crosspost' => false
],
'243512' => [
'id' => '243512',
'is_crosspost' => true
],
'132452' => [
'id' => '132452',
'is_crosspost' => false
]
];

$expected = $data;
unset($expected['243512']);

$this->wallsIoClientProphecy
->processRequest(Argument::type(ChangedRequest::class))
->shouldBeCalled()
->willReturn(
[
'status' => 'success',
'data' => $data
]
);

self::assertSame(
$expected,
$this->subject->getWallPosts(3, 365)
);
}

/**
* @test
*/
Expand Down

0 comments on commit 7fa124a

Please sign in to comment.