CakeDC\Users\Test\TestCase\Model\Behavior\SocialBehaviorTest::testSocialLoginExistingReference PHP Метод

testSocialLoginExistingReference() публичный Метод

Test socialLogin with facebook with existing and active user
public testSocialLoginExistingReference ( $data, $options )
    public function testSocialLoginExistingReference($data, $options)
    {
        $this->Behavior->expects($this->never())->method('generateUniqueUsername');
        $this->Behavior->expects($this->never())->method('randomString');
        $this->Behavior->expects($this->never())->method('_updateActive');
        $result = $this->Behavior->socialLogin($data, $options);
        $this->assertEquals($result->id, '00000000-0000-0000-0000-000000000002');
        $this->assertTrue($result->active);
    }