Coder Social home page Coder Social logo

Comments (4)

mwjames avatar mwjames commented on June 13, 2024

Now that some tests exists (#12) maybe it would be good to push for this integration.

from semanticwatchlist.

JeroenDeDauw avatar JeroenDeDauw commented on June 13, 2024

@mwjames oh. And they run properly?

from semanticwatchlist.

mwjames avatar mwjames commented on June 13, 2024

And they run properly?

Yes (for those classes that have a test) and as you can see it will also fail properly. Install via composer and composer phpunit will output:

SemanticMediaWiki 2.1 (sqlite) test autoloader ...

MediaWiki 1.24.1 root vendor autoloader ...

PHPUnit 4.4.2 by Sebastian Bergmann.

Configuration read from C:\xampp\htdocs\sandbox-import\extensions\SemanticWatchlist\phpunit.xml.dist

......E...............

Time: 12.65 seconds, Memory: 20.25Mb

There was 1 error:

1) SWL\Tests\Integration\HookRegistrationIntegrationTest::testStoreUpdateHookInterfaceInitialization
DBQueryError: A database error has occurred. Did you forget to run maintenance/update.php after upgrading?  See: ht
tps://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT  group_id,group_name,group_categories,group_namespaces,group_properties,group_concepts,group_custom_t
exts  FROM swl_groups
Function: DatabaseBase::select
Error: 1 no such table: swl_groups


...\includes\db\Database.php:1216
...\includes\db\Database.php:1182
...\includes\db\Database.php:1650
...\extensions\SemanticWatchlist\includes\SWL_Groups.php:44
...\extensions\SemanticWatchlist\includes\SWL_Groups.php:66
...\extensions\SemanticWatchlist\SemanticWatchlist.hooks.php:32
...\includes\Hooks.php:206
...\includes\GlobalFunctions.php:3995
...\extensions\SemanticMediaWiki\includes\storage\SMW_Store.php:210
...\extensions\SemanticWatchlist\tests\phpunit\Integration\HookRegistrationIntegrationTest.php:97

from semanticwatchlist.

mwjames avatar mwjames commented on June 13, 2024

Fixed with #45

from semanticwatchlist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.