Ejemplo n.º 1
0
 public function testSaveExtraFilledId()
 {
     $uid = 123;
     $this->userMock->expects($this->atLeastOnce())->method('getId')->willReturn($uid);
     $this->resourceMock->expects($this->once())->method('getConnection')->willReturn($this->dbAdapterMock);
     $this->dbAdapterMock->expects($this->once())->method('update');
     $this->assertInstanceOf('Magento\\User\\Model\\ResourceModel\\User', $this->model->saveExtra($this->userMock, [1, 2, 3]));
 }