public function testActivateUserAccount() { $token = $this->manager->activateUserAccount('ibfnf5g6sd1f3f'); $this->assertInstanceOf(UsernamePasswordToken::class, $token); $this->assertCount(2, $token->getRoles()); $this->assertTrue($token->isAuthenticated()); $this->assertEquals('John Doe', $token->getUsername()); }