public function SimpleFbConnectUserManagerTest::testDownloadProfilePicWhenUserPicturesNotInUse in Simple FB Connect 8.2
Same name and namespace in other branches
- 8.3 tests/src/Unit/SimpleFbConnectUserManagerTest.php \Drupal\Tests\simple_fb_connect\Unit\SimpleFbConnectUserManagerTest::testDownloadProfilePicWhenUserPicturesNotInUse()
Tests downloadProfilePic when user pictures are not enabled.
@covers ::downloadProfilePic @covers ::getPictureDirectory
File
- tests/
src/ Unit/ SimpleFbConnectUserManagerTest.php, line 315 - Contains Drupal\Tests\simple_fb_connect\Unit\SimpleFbConnectUserManagerTest.
Class
- SimpleFbConnectUserManagerTest
- @coversDefaultClass Drupal\simple_fb_connect\SimpleFbConnectUserManager @group simple_fb_connect
Namespace
Drupal\Tests\simple_fb_connect\UnitCode
public function testDownloadProfilePicWhenUserPicturesNotInUse() {
$this->entityFieldManager
->expects($this
->once())
->method('getFieldDefinitions')
->with('user', 'user')
->willReturn(array());
$this
->assertFalse($this->userManager
->subDownloadProfilePic('http://www.example.com/picture.jpg', '1234'));
}