edward-murrell / tdd7 Goto Github PK
View Code? Open in Web Editor NEWTest driven development framework for Drupal7.
License: GNU General Public License v2.0
Test driven development framework for Drupal7.
License: GNU General Public License v2.0
Currently order by does not work for multiple columns on db_select.
https://api.drupal.org/api/drupal/includes!database!select.inc/function/SelectQuery%3A%3AorderBy/7
As per https://www.drupal.org/node/278537, db_delete does not always support DELETE with ORDER & LIMIT.
Acceptance criteria for this issue:
Stretch goals:
The following code will not error when used with the DatabaseConnection_unittest::db_select(), but will create errors on production;
$item = db_select('commerce_line_item')
->condition('order_id', $order_id)
->condition('type', 'product')
->execute();
Without the fields() statement, this would produce the following SQL when using the DatabaseConnection_mysql connection class;
SELECT FROM commerce_line_item commerce_line_item WHERE order_id = 123 AND type = ‘product’;
The following code is handled by tdd7, but needs to be enforced as mandatory in the mock.
$item = db_select('commerce_line_item')
->condition('order_id', $order_id)
->fields('commerce_product', array('product_id', 'revision_id', 'sku')
->condition('type', 'product')
->execute();
Currently it's possible to update & insert data into columns in the database mock that do not exist.
In the test case MockDatabaseTestUpdateCase::testDB_updateFieldthatDoesntExist(), the previously non-existent field 'foo' is updated, which is then found in the resulting output.
Acceptance criteria for this issue:
Stretch goals:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.