Created
November 15, 2021 14:57
-
-
Save jzawadzki/05ad86b9386e9ccffae9611c42632992 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyTeamProviderTest extends WebTestCase | |
{ | |
/** | |
* @dataProvider dataProvider | |
*/ | |
public function test_my_team() | |
{ | |
$client = static::createClient(); | |
$userRepository = static::getContainer()->get(UserRepository::class); | |
//lub inaczej wziąć usera | |
$testUser = $userRepository->findOneByEmail('[email protected]'); | |
$client->loginUser($testUser); | |
//instancja serwisu | |
$myTeamProvider = static::getContainer()->get(MyTeamProvider::class); | |
$myTeam = $myTeamProvider->provide(); | |
$this->assertCount($expectedNumberOfProjects, $myTeam); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment