@@ -45,7 +45,7 @@ public function setUp()
45
45
$ this ->resourceMock = $ this ->getMock ('Magento\Framework\App\Resource ' , [], [], '' , false );
46
46
$ this ->resourceMock ->expects ($ this ->any ())->method ('getConnection ' )->willReturn ($ this ->adapterMock );
47
47
48
- $ contextMock = $ this ->getMock ('\ Magento\Framework\Model\Resource\Db\Context ' , [], [], '' , false );
48
+ $ contextMock = $ this ->getMock ('Magento\Framework\Model\Resource\Db\Context ' , [], [], '' , false );
49
49
$ contextMock ->expects ($ this ->once ())->method ('getResources ' )->willReturn ($ this ->resourceMock );
50
50
$ this ->consumerResource = new \Magento \Integration \Model \Resource \Oauth \Consumer (
51
51
$ contextMock ,
@@ -56,13 +56,19 @@ public function setUp()
56
56
public function testBeforeSave ()
57
57
{
58
58
$ this ->consumerMock ->expects ($ this ->once ())->method ('setUpdatedAt ' );
59
- $ this ->consumerResource ->_beforeSave ($ this ->consumerMock );
59
+ $ this ->assertInstanceOf (
60
+ 'Magento\Integration\Model\Resource\Oauth\Consumer ' ,
61
+ $ this ->consumerResource ->_beforeSave ($ this ->consumerMock )
62
+ );
60
63
}
61
64
62
65
public function testAfterDelete ()
63
66
{
64
67
$ this ->adapterMock ->expects ($ this ->exactly (2 ))->method ('delete ' );
65
- $ this ->consumerResource ->_afterDelete ($ this ->consumerMock );
68
+ $ this ->assertInstanceOf (
69
+ 'Magento\Integration\Model\Resource\Oauth\Consumer ' ,
70
+ $ this ->consumerResource ->_afterDelete ($ this ->consumerMock )
71
+ );
66
72
}
67
73
68
74
public function testGetTimeInSecondsSinceCreation ()
0 commit comments