public function testAfterCreateNoResource()
 {
     $integrationId = 1;
     $integrationModelMock = $this->getMockBuilder('Magento\\Integration\\Model\\Integration')->disableOriginalConstructor()->getMock();
     $integrationModelMock->expects($this->exactly(2))->method('getId')->will($this->returnValue($integrationId));
     $integrationModelMock->expects($this->at(1))->method('getData')->with('all_resources')->will($this->returnValue(null));
     $integrationModelMock->expects($this->at(2))->method('getData')->with('resource')->will($this->returnValue(null));
     $this->integrationAuthServiceMock->expects($this->once())->method('grantPermissions')->with($integrationId, []);
     $this->integrationPlugin->afterCreate($this->subjectMock, $integrationModelMock);
 }