Skip to main content
Skip to search
Can we use first and third party cookies and web beacons to
understand our audience, and to tailor promotions you see
?
Yes, please
No, do not track me
Drupal.org home
Discover Drupal
Drupal Core
Drupal CMS
Drupal AI
Case Studies
Drupal for Government
Drupal for Higher Education
Drupal for Nonprofit
Drupal for eCommerce
Drupal for FinTech
Drupal for Healthcare
Drupal for Enterprise
Drupal for Retail
Drupal for Travel & Tourism
Build with Drupal
Download Drupal
Documentation
Getting started
Local Development Guide
Developer Resources
Drupal CMS User Guide
Drupal User Guide
API
Modules
Themes
Recipes
Site Templates
Issue queues
Security Advisories
Partners & Services
Find a Drupal Certified Partner
Become a Drupal Certified Partner
Find a Hosting Provider
Find a Migration Partner
Find Training
Drupal Steward
Community
About the Community
How to Contribute
DrupalCon
Events
Jobs / Careers
News & Blogs
Forum
Slack
Newsletters
Drupal Swag Shop
Support Drupal
The Drupal Association
Donate
Become a Partner
Become a Ripple Maker
Become an Organization Member
Drupal Swag Shop
Get Started
Try Drupal CMS
Try Hosting
Return to content
Search form
Search
Log in
Create account
Modules
IMP
Issues
Write unit tests for Sql.php
Active
Project:
IMP
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
eliza411
Created:
9 Nov 2013 at 19:12 UTC
Updated:
19 Nov 2013 at 17:21 UTC
Jump to comment:
Most recent
Grab an issue from the "Child Issues" list to the right on this page
Assign it to yourself while you're working on it
Write PHPUnit tests for the function in the issue
File location (from the Drupal root): core/modules/migrate/lib/Drupal/migrate/Plugin/migrate/id_map/Sql.php
PHPUnit documentation:
http://phpunit.de/manual/3.7/en/automating-tests.html
Drupal documentation for PHPUnit:
https://drupal.org/node/2116239
IMP example:
http://drupalcode.org/sandbox/chx/2105305.git/blob/HEAD:/tests/Drupal/mi...
IMP example:
http://drupalcode.org/sandbox/chx/2105305.git/blob/HEAD:/tests/Drupal/mi...
Comments
Comment
#1
eliza411
commented
17 November 2013 at 01:06
Issue summary:
View changes
Log in
or
register
to post comments
Comment
#2
eliza411
commented
17 November 2013 at 06:06
Title:
Create issues for Sql.php unit tests
» Wite unit tests for Sql.php
Component:
Miscellaneous
» Code
Log in
or
register
to post comments
Comment
#3
eliza411
commented
19 November 2013 at 00:48
Title:
Wite unit tests for Sql.php
» Write unit tests for Sql.php
Issue summary:
View changes
Log in
or
register
to post comments
Comment
#4
eliza411
commented
19 November 2013 at 00:49
Issue summary:
View changes
Log in
or
register
to post comments
Comment
#5
eliza411
commented
19 November 2013 at 14:42
Issue summary:
View changes
Log in
or
register
to post comments
Comment
#6
eliza411
commented
19 November 2013 at 17:21
Issue summary:
View changes
Log in
or
register
to post comments
Contribution record
Parent issue
https://www.drupal.org/node/2130511
Child issues
#2137461: Write PHPUnit tests for SQL.php:getMapTable()
#2137463: Write PHPUnit tests for SQL.php:getMessageTable()
#2137465: Write PHPUnit tests for SQL.php:getCurrentKey()
#2137467: Write PHPUnit tests for SQL.php:getQualifiedMapTable()
#2137469: Write PHPUnit tests for SQL.php:getDatabase()
#2137471: Write PHPUnit tests for SQL.php:setMessage()
#2137475: Write PHPUnit tests for SQL.php:ensureTables()
#2137477: Write PHPUnit tests for SQL.php:getRowBySource(array
#2137479: Write PHPUnit tests for SQL.php:getRowByDestination()
#2137481: Write PHPUnit tests for SQL.php: getRowsNeedingUpdate()
#2137483: Write PHPUnit tests for SQL.php:lookupSourceID()
#2137485: Write PHPUnit tests for SQL.php:saveMessage()
#2137487: Write PHPUnit tests for SQL.php: prepareUpdate()
#2137489: Write PHPUnit tests for SQL.php:processedCount()
#2137491: Write PHPUnit tests for SQL.php: importedCount()
#2137493: Write PHPUnit tests for SQL.php: updateCount()
#2137495: Write PHPUnit tests for SQL.php: saveIdMapping()
#2137497: Write PHPUnit tests for SQL.php:messageCount()
#2137499: Write PHPUnit tests for SQL.php:setUpdate()
#2137501: Write PHPUnit tests for SQL.php:clearMessages()
#2137503: Write PHPUnit tests for SQL.php:destroy()
#2137505: Write PHPUnit tests for SQL.php:rewind()
#2137507: Write PHPUnit tests for SQL.php:current()
#2137509: Write PHPUnit tests for SQL.php: Iterator methods
#2137511: Write PHPUnit tests for SQL.php:next()
#2137513: Write PHPUnit tests for SQL.php: valid()
#2137515: Write PHPUnit tests for SQL.php: errorCount()
#2137517: Write PHPUnit tests for SQL.php: lookupDestinationID()
Comments
Comment #1
eliza411 commentedComment #2
eliza411 commentedComment #3
eliza411 commentedComment #4
eliza411 commentedComment #5
eliza411 commentedComment #6
eliza411 commented