weitzman / upal

PHPUnit based test framework for Drupal. Aims to runs all the existing Simpletests without modification.
60 stars 19 forks source link

Fix the web test cases #5

Closed dawehner closed 12 years ago

dawehner commented 12 years ago

If you run tests which uses web test cases they fail, for example

phpunit --debug --configuration /path/to/upal/phpunit.xml core/modules/book/book.test

So the problem i see is the following $this->content is something like '$conf['install_profile'] = 'standard'; <!DOCTYPE html>'

This obvious causes problems for uses of assertPattern. The only place i can see this code is drush_core_pre_site_install($profile);

I will investigate further

weitzman commented 12 years ago

I just committed our own versions of assertTrue, assertFalse, and assertThat emthods which return boolean as thats what simpletest expects. I think this fixed the login issue but the book test does not pass still. help wanted.