public function SimpleFbConnectPersistentDataHandlerTest::testGet in Simple FB Connect 8.3
Tests get().
@covers ::get
File
- tests/
src/ Unit/ SimpleFbConnectPersistentDataHandlerTest.php, line 35
Class
- SimpleFbConnectPersistentDataHandlerTest
- @coversDefaultClass Drupal\simple_fb_connect\SimpleFbConnectPersistentDataHandler @group simple_fb_connect
Namespace
Drupal\Tests\simple_fb_connect\UnitCode
public function testGet() {
$this->session
->expects($this
->once())
->method('get')
->with('simple_fb_connect_example_key')
->willReturn('hello world');
$this
->assertEquals('hello world', $this->persistentDataHandler
->get('example_key'));
}