public function testNeedMigrationPluginWithMigration() { $migrationVersion = $this->__getMockMigrationVersion(); $migrationVersion->expects($this->any())->method('getMapping')->will($this->returnValue($this->_mapping)); $migrationVersion->expects($this->any())->method('getVersion')->will($this->returnValue(1346748762)); $croogoPlugin = new CroogoPlugin($migrationVersion); $this->assertEquals(true, $croogoPlugin->needMigration('app', true)); }