Add basic tests for JDatabaseSQLSrv #872

Merged
merged 1 commit into from Feb 14, 2012

Projects

None yet

3 participants

@mbabker
Member
mbabker commented Feb 13, 2012

PHPUnit natively doesn't support database operations when testing with SQL Server, so without writing our own test class, there isn't much we can test. Basically, if it doesn't require a query, it appears we can test it (so, basically testing that the class is returned for chaining, the queries are built correctly with proper quoting, etc.).

I've implemented this test class the same way as the MySQL(i) test classes in that the class should be skipped if a config file isn't present (verified locally that this works as intended).

I've also renamed the MySQL DDL and added a DDL for SQL Server should future testing support become available.

@joomla-jenkins

Build triggered by changes to the base.

Unit testing complete. There were 0 failures and 0 errors from 1995 tests and 11170 assertions.
Checkstyle analysis reported 164 warnings and 0 errors.

@eddieajau eddieajau merged commit af044fc into joomla:staging Feb 14, 2012
@eddieajau

Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment