2 namespace TYPO3\CMS\Install\Tests\Unit\Updates;
17 use Prophecy\Argument;
18 use Prophecy\Prophecy\ObjectProphecy;
20 use TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase;
47 unset(
$GLOBALS[
'TYPO3_CONF_VARS'][
'INSTALL'][
'wizardDone']);
48 $prophet =
new Prophet();
49 $this->packageManagerProphecy = $prophet->prophesize(PackageManager::class);
50 $this->dbProphecy = $prophet->prophesize(\TYPO3\CMS\Core\Database\DatabaseConnection::class);
51 $GLOBALS[
'TYPO3_DB'] = $this->dbProphecy->reveal();
52 $this->updateWizard =
new UpdateWizard();
67 $this->packageManagerProphecy->isPackageActive(
'fluid_styled_content')->willReturn(
true);
68 $this->packageManagerProphecy->isPackageActive(
'css_styled_content')->willReturn(
true);
71 $this->assertFalse($this->updateWizard->checkForUpdate($description));
80 $this->packageManagerProphecy->isPackageActive(
'fluid_styled_content')->willReturn(
true);
81 $this->packageManagerProphecy->isPackageActive(
'css_styled_content')->willReturn(
false);
82 $this->dbProphecy->exec_SELECTcountRows(Argument::cetera())->willReturn(1);
85 $this->assertTrue($this->updateWizard->checkForUpdate($description));