add UT for PMA_relation #483

Merged
merged 4 commits into from Jul 8, 2013

Projects

None yet

2 participants

@adamgsoc2013
Contributor

No description provided.

@nijel nijel commented on an outdated diff Jul 8, 2013
test/libraries/PMA_relation_test.php
+ */
+
+/*
+ * Include to test.
+ */
+require_once 'libraries/Util.class.php';
+require_once 'libraries/php-gettext/gettext.inc';
+require_once 'libraries/database_interface.inc.php';
+require_once 'libraries/Tracker.class.php';
+require_once 'libraries/relation.lib.php';
+
+class PMA_Relation_Test extends PHPUnit_Framework_TestCase
+{
+ public function setUp()
+ {
+ $GLOBALS['server'] = "table";
@nijel
nijel Jul 8, 2013 Member

This is definitely wrong value, should be an integer.

@adamgsoc2013
Contributor

Hi Marc, I have fixed the issues you mentioned and add more case. thanks

@nijel nijel merged commit 7fc33d7 into phpmyadmin:master Jul 8, 2013

1 check passed

default The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment