Skip to content

Conversation

@AlexT-lv
Copy link
Collaborator

@AlexT-lv AlexT-lv commented Dec 2, 2019

No description provided.

return $this->repo->findOneBy(['id' => $id, 'isActive' => true]) ?: [];
}

public function search(string $key)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type ton retour

$this->assertSame([], $this->init()->getOne($id));
}

public function testSearch()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem

{
$actual = $this->init()->search('Xavier');

dd($actual);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retire le dd

@holoflins
Copy link
Contributor

manque les tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants