Skip to content

Conversation

@danxuliu
Copy link
Member

I forgot to commit this in #1051 🤦

$password = '';
$activeGuests = 0;

return new Room($manager, $db, $secureRandom, $dispatcher, $hasher, $id, $type, $token, $name, $password, $activeGuests);
Copy link
Member

Choose a reason for hiding this comment

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

could also do $this->createMock(Room::class); and then mock the methods you actually test?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, done; I kept the room type as a parameter even if it is not actually used because it looks like something that should be included in the result, so less typing in the tests for the future :-P

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu danxuliu force-pushed the add-unit-tests-for-collaborator-search branch from 99c023c to 780bcf7 Compare September 27, 2018 16:54
@nickvergessen nickvergessen merged commit 10ee63f into master Sep 28, 2018
@nickvergessen nickvergessen deleted the add-unit-tests-for-collaborator-search branch September 28, 2018 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review feature: upload & shares & voice 📤🎙️ Sharing files into a chat and audio recordings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants