public function testActivate() { $this->user->activate(); $this->assertEquals('*****@*****.**', $this->user->getEmail()); $this->assertEquals('john', $this->user->getUsername()); $this->assertEquals('John', $this->user->getName()); $this->assertEquals('Smith', $this->user->getSurname()); $this->assertNotEmpty($this->user->getPassword()); $this->assertEmpty($this->user->getCode()); $this->assertFalse($this->user->isFrozen()); $this->assertInstanceOf(DateTime::class, $this->user->getCreatedAt()); $this->assertInstanceOf(ReadOnlyCollectionWrapper::class, $this->user->getRoles()); }