Пример #1
0
 public function testReturnNullDefault()
 {
     $sync = new SyncService(['serviceClass' => '\\tests\\models\\TestOAuth2', 'returnUrl' => 'http://fakehost/returnUrl']);
     $this->assertTrue(is_null($sync->getPosts()));
     $this->assertTrue(is_null($sync->publishPost('message')));
     $this->assertTrue($sync->deletePost(1) === false);
     $this->assertTrue(!$sync->isReadOnly());
 }