@@ -55,12 +55,16 @@ class PackagesDataTest extends \PHPUnit_Framework_TestCase
55
55
public function setUp ()
56
56
{
57
57
$ this ->composerInformation = $ this ->getComposerInformation ();
58
- $ this ->timeZoneProvider = $ this ->getMock (\Magento \Setup \Model \DateTime \TimeZoneProvider::class, [], [], '' , false );
58
+ $ this ->timeZoneProvider = $ this ->getMockBuilder (\Magento \Setup \Model \DateTime \TimeZoneProvider::class)
59
+ ->disableOriginalConstructor ()
60
+ ->getMock ();
59
61
$ timeZone = $ this ->getMock (\Magento \Framework \Stdlib \DateTime \Timezone::class, [], [], '' , false );
60
62
$ this ->timeZoneProvider ->expects ($ this ->any ())->method ('get ' )->willReturn ($ timeZone );
61
63
$ this ->packagesAuth = $ this ->getMock (\Magento \Setup \Model \PackagesAuth::class, [], [], '' , false );
62
64
$ this ->filesystem = $ this ->getMock (\Magento \Framework \Filesystem::class, [], [], '' , false );
63
- $ this ->objectManagerProvider = $ this ->getMock (\Magento \Setup \Model \ObjectManagerProvider::class, [], [], '' , false );
65
+ $ this ->objectManagerProvider = $ this ->getMockBuilder (\Magento \Setup \Model \ObjectManagerProvider::class)
66
+ ->disableOriginalConstructor ()
67
+ ->getMock ();
64
68
$ objectManager = $ this ->getMockForAbstractClass (\Magento \Framework \ObjectManagerInterface::class);
65
69
$ applicationFactory = $ this ->getMock (
66
70
\Magento \Framework \Composer \MagentoComposerApplicationFactory::class,
0 commit comments