Commit Graph

261 Commits (259d0b8feca71d49c2f79dcce53b3147f7429b75)

Author SHA1 Message Date
Dries Buytaert 8a0e218d32 - Patch #478188 by boombatower: code style fixes. 2009-06-01 11:35:09 +00:00
Dries Buytaert 0f77f652fa - Patch #394524 by Berdir, Damien Tournoud: converted to the new database abstraction layer. 2009-05-30 11:17:32 +00:00
Dries Buytaert 39877809cc - Patch #477038 by Damien Tournoud, chx: add security and session token support to DrupalWebTestCase. 2009-05-30 07:09:02 +00:00
Dries Buytaert 2278d592eb - Patch #296001 by mr.baileys, ThiOz et al: added support for e-mail assertions. Woot! 2009-05-26 08:46:03 +00:00
Dries Buytaert e2184e25ac - Patch #464714 by chx, DamZ: speed up the tests by bringing unit tests backt to live. Unit tests bootstrap faster and have the potential to speed up testing. We'll need help converting tests where possible. 2009-05-25 05:20:16 +00:00
Dries Buytaert a24a6c2bba - Patch #471070 by stella: millions of code style fixes. 2009-05-24 17:39:35 +00:00
Dries Buytaert c9e4bbf91d - Patch #470992 by chx: disable locale module while running tests. 2009-05-24 07:04:33 +00:00
Angie Byron 33eefeb784 #452416 by bjaspan: Reformat status reporting code slightly to allow breakpoints in debuggers. 2009-05-20 22:16:38 +00:00
Angie Byron 17df77c3a4 #295864 follow-up by boombatower: Clarify when to use randomName() vs. randomString(). 2009-05-03 20:01:11 +00:00
Dries Buytaert 8c7fd11fd4 - Patch #419114 by boombatower: clean up assertions. 2009-05-03 09:30:21 +00:00
Dries Buytaert 16cb95557d - Patch #295864 by boombatower, sun: fixed typos in the documentation. Nice catches, sun\! 2009-04-29 21:35:38 +00:00
Dries Buytaert e721147363 - Patch #295864 by boombatower: cleaned up the randomName() method by removing unnecessary prefix code, and added a new randomString() method which includes characters like spaces. 2009-04-29 12:08:28 +00:00
Dries Buytaert 7bf8e72aaa - Patch #340081 by dmitrig01, boombatower: clean-up of drupalCreateUser() 2009-04-29 12:04:47 +00:00
Angie Byron 279f33c6c5 #339210 by klausi and dmenefee: Allow SimpleTest module to work on sites with HTTP authentication. 2009-04-25 22:35:49 +00:00
Dries Buytaert 598dc48357 - Patch #335756 by Damien Tournoud, hass: fixed simpletest file directory path. 2009-04-25 13:40:41 +00:00
Dries Buytaert 26395c843f - Patch #308296 by Dave Reid, Damien Tournoud: clean-up of drupalCreateNode(). 2009-04-22 09:57:10 +00:00
Dries Buytaert f09028107c - Patch #413732 by brianV: database code clean-up. 2009-04-20 20:02:31 +00:00
Angie Byron 4ffebc570c #368639 by puradata: Remove drupalCreateField/Instance in favour of standard API functions. 2009-04-20 02:46:25 +00:00
Dries Buytaert 9179976227 - Patch #434336 by klausi: fixed simpletest on lighttpd. Curl header funkiness. 2009-04-17 07:07:09 +00:00
Angie Byron f85f7cf8c1 #349237 by c960657: Fix assertTitle()'s encoding of HTML attributes (with tests). 2009-03-30 05:35:35 +00:00
Angie Byron ee2e63d7f9 #402804 by roychri and Damien Tournoud: Add assertions to check if text was found only once or more than once. 2009-03-17 23:26:33 +00:00
Angie Byron 3b30509599 #347250 by catch, drewish, and Berdir: Add function for loading multiple users in one request. 2009-03-14 23:01:38 +00:00
Dries Buytaert 8a0d326a8e - Patch #400636 by mr.baileys: improve HTTP request assertion message. 2009-03-14 21:28:50 +00:00
Dries Buytaert 22cef75526 - Patch #395856 by mr.baileys: added HTTP request status code to request assertion message. 2009-03-09 17:11:59 +00:00
Dries Buytaert 582fbf2828 - Patch #395228 by c960657: fixed sorting order in drupalGetTestFiles(). 2009-03-08 21:52:10 +00:00
Dries Buytaert 001cd711bf - Patch #334554 by hass: prevent endless loops in the simpletests. 2009-02-22 20:12:03 +00:00
Dries Buytaert 5d658d0848 - Patch #380064 by c960657: make file_scan_directory() use save property names as file_load(). 2009-02-22 17:55:30 +00:00
Angie Byron 52c17c6d3e #373502 by drewish and sun: Add function to delete unmanaged files recurisevely (with tests). 2009-02-13 00:39:01 +00:00
Angie Byron f2e8aeff80 #369413 by bjaspan: Reset Field API caches in DrupalWebTestCase->tearDown(). 2009-02-06 00:30:36 +00:00
Dries Buytaert 607e9626d5 - Patch #361683by Barry, Yves, Karen, Moshe Weitzman, David Strauss, floriant, chx, David Rothstein: initial field API patch. More work to be done, but ... oh my! 2009-02-03 17:30:13 +00:00
Angie Byron 250e486bb0 #363687 by chx: Simplify DBTNG codeflow. 2009-01-25 12:19:32 +00:00
Dries Buytaert d20e457121 - Patch #201122 by c960657, Moshe Weitzman: never write anonymous sessions, unless something has been written to . This is an important performance improvements -- as long as you use modules that use carefully. It might be good to report some analytics about this in the performance settings page so administrators can see if there is a 'broken' module. 2009-01-19 10:46:52 +00:00
Dries Buytaert ea39388e48 - Patch #351805 by chx: worked around endless loops in tests. 2009-01-06 12:44:20 +00:00
Dries Buytaert cce322378c - Patch #353618 by sun: drupalLogin does not update passed-in user object -- improved documentation. 2009-01-06 11:04:59 +00:00
Dries Buytaert 92a8adea65 - Patch #352470 by scor: fixed typos and grammar in comments. 2008-12-30 16:43:20 +00:00
Dries Buytaert 0c63d9e24f - Patch #349504 by keith.smith: clean up sentence spacing in code comments. 2008-12-20 18:24:41 +00:00
Angie Byron a7d66871bd #283246 by Damien Tournoud, Dave Reid, drewish, boombatower: Store original user when prior to running tests. 2008-12-18 00:42:55 +00:00
Dries Buytaert 0f99a1fb2d - Patch #346529 by Dave Reid: fixed bug in assertFieldByXPath. 2008-12-13 14:03:21 +00:00
Dries Buytaert 01ed110a6b - Patch #345838 by Dave Reid: remove user creation from drupalLogin(). drupalLogin() should only do one thing, and do it well. :) 2008-12-11 20:35:37 +00:00
Dries Buytaert 60524be44b - Patch #345632 by boombatower: corrected assertTitle logic and added assertNoTitle for completeness. 2008-12-11 20:11:40 +00:00
Dries Buytaert 6f859fdd8f - Patch #328781 by Damien Tournoud and Dave Reid: fixed simpletest error reporting. 2008-12-09 11:09:26 +00:00
Dries Buytaert 55382d04a7 - Patch #318016 by Dave Reid: step one to standardizing type-hinting. 2008-12-08 21:41:54 +00:00
Angie Byron baa9c7e2b0 #343765 by Dave Reid: Initialize SimpleTest with a value for required site_mail variable. 2008-12-07 07:55:24 +00:00
Dries Buytaert 58b0235a72 - Patch #324313 by catch et al: load multiple nodes and terms at once. 2008-12-05 22:18:46 +00:00
Dries Buytaert cadd9bd54c - Patch #335086 by recidive: rename node, filter and comment module tables to singular for consistency. Oh my. 2008-12-03 16:32:22 +00:00
Dries Buytaert 5c72eb294a - Patch #327269 by c960657: when drupal_page_cache_header() compares the client's If-Modified-Since header to $cache->created, it assumed a certain date format. However, HTTP/1.1 allows several variations of the date format, i.e. the same time may be represented in slightly different ways. If the client sends the date in a different format than the one generated by Drupal, it would never receive a 304 Not Modified response. Also added a good amount of tests for the drupal_page_cache_header() code. 2008-12-03 14:51:53 +00:00
Dries Buytaert 99afbc53a7 - Patch #330582 by Darren Oh, c960657 et al: better API for retrieving HTTP headers and working with HTTP headers in tests. 2008-12-02 20:03:57 +00:00
Angie Byron f3ad4d9568 #340052 by justinrandell: Speed up SimpleTest by 15,000 orders of magnitude by pre-loading the registry. 2008-11-30 07:04:45 +00:00
Dries Buytaert bc719d0c55 - Patch #337820 by Dave Reid, Damien Tournoud, et al: rename menu path 'logout' to 'user/logout'. For real now. 2008-11-29 09:33:51 +00:00
Angie Byron d7f706f291 Reverting #337820 once more, as it causes mysterious test failures. 2008-11-27 07:07:01 +00:00
Dries Buytaert 63e195eb30 - Patch #338239 by Damien Tournoud: clean-up DrupalWebTestCase. 2008-11-26 13:48:50 +00:00
Dries Buytaert c01f85bc37 - Patch #337820 by Dave Reid: rename menu path logout to user/logout. 2008-11-25 13:16:39 +00:00
Angie Byron bd9554952c Reverting #337820 which causes menu tests to fail, unbeknownst to testing bot. Hrm... 2008-11-24 04:22:02 +00:00
Angie Byron 251a761eaa #337820 by Dave Reid: Rename menu path 'logout' to 'user/logout' for consistency. 2008-11-23 21:17:48 +00:00
Dries Buytaert 6a93b9d4c4 - Patch #336043 by c960657: skip calls to curlExec() in curlConnect(). Nice find, c960657\! 2008-11-23 18:12:08 +00:00
Angie Byron 2ea70d6507 #304940 by drewish: Stop SimpleTest from trying to upload non-files. 2008-11-09 03:07:54 +00:00
Dries Buytaert 57d35b7fb1 - Patch #243532 by Damien Tournoud et al: catch notices, warnings and fatal errors during testing. Woop, woop. 2008-11-05 17:06:18 +00:00
Dries Buytaert dc1af5e290 - Patch #321161 by Damien Tournoud: properly flush cache between tests. 2008-11-05 15:54:56 +00:00
Dries Buytaert fa94c66c92 - Patch #328719 by c960657: make the module list tests succeed again. 2008-11-01 21:21:35 +00:00
Dries Buytaert 5c3db6511b - Patch #322779 by Damein Tournoud, cha0s: simpletest calls file_check_directory incorrectly. 2008-10-20 13:06:15 +00:00
Dries Buytaert 967d8f67ac - Patch #304924 by Damien Tournoud: extend error handler to manage exceptions. I have one exception and one fail. 2008-10-15 16:05:51 +00:00
Angie Byron f95f58cc05 #320161 by Dave Reid: Fix problems with drupalGetTestFiles() that causes upload.test to break on some systems. 2008-10-12 08:30:05 +00:00
Angie Byron f76acb2d9d #282405 by Damien Tournoud, lilou, Dave Reid: Enforce coding standard on elseif. 2008-10-12 04:30:09 +00:00
Angie Byron a765e882eb #320127 by matt2000: Fix bug with file_check_directory() being passed a function by-reference. 2008-10-12 03:46:08 +00:00
Angie Byron 0a6b178c96 #316344 by boombatower: Add meta refresh support to SimpleTest to allow programmatically dealing with Batch API and such. 2008-10-09 02:49:36 +00:00
Angie Byron 4c976d51e6 #281446 by xqus, dropcube, and catch: Improve the requirements check for the installer. Awesome. 2008-10-01 00:27:29 +00:00
Angie Byron a3bb66e4e8 #259623 by dopry and Damien Tournoud: Convert includes/requires to use absolute paths. 2008-09-20 20:22:25 +00:00
Angie Byron a4b0bb58a2 #310358 by drewish: Add a test for file_save_upload and clean up file.test. 2008-09-20 07:35:53 +00:00
Angie Byron 89b4c55989 #64967 follow-up by drewish: Replace ereg with preg in file_scan_directory(). 2008-09-20 03:49:24 +00:00
Angie Byron ca858345c6 #255613 by boombatower: Replace old crufty manual cURL call with nice drupalGet(). 2008-09-19 02:47:38 +00:00
Dries Buytaert 7f29b14277 - Patch #305645 by pwolanin: ['REQUEST_TIME'] -> REQUEST_TIME. Improved developer experience. 2008-09-17 07:11:59 +00:00
Angie Byron e3b019f480 #299186 by boombatower: Fix assertFieldByXPath so that it recognizes select and textarea values. 2008-09-17 00:46:44 +00:00
Angie Byron a7c16d158d #308186 by chx: Fix tons and tons of test failures in certain versions of cURL. 2008-09-14 06:46:34 +00:00
Angie Byron ab07b4cd5e #305077 by DamZ, boombatower, and cwgordon7: Rework SimpleTest backend. 2008-09-10 04:13:01 +00:00
Dries Buytaert e5b0e5f76c - Patch #302763 by Dave Reid, Rob Loach: replace time() by ['REQUEST_TIME'] as per Rasmus' suggestion. Removed drupal_referrer() for consistency. 2008-09-06 08:36:22 +00:00
Dries Buytaert fb9d456450 - Patch #299461 by Damien Tournoud: fixed annoying glitches with assertEqual(). 2008-08-30 09:42:25 +00:00
Dries Buytaert 6261c4cad2 - Patch #246261 by pwolanin: simpletest does not handle optgroup correctly 2008-08-30 09:27:21 +00:00
Dries Buytaert 5dee24e73f - Patch #297894 by boombatower: two new asserts for link checking. 2008-08-23 07:42:54 +00:00
Dries Buytaert 8b00301995 - Patch #298137 by flobruit: drupalCreateContentType() now resets node permissions. 2008-08-22 12:40:32 +00:00
Dries Buytaert c15bcc0653 - Patch #297869 by boombatower: add xpath method to simpletest and refactor existing tests. 2008-08-22 12:35:55 +00:00
Dries Buytaert 69e6f411a9 - Patch #225450 by Crell, chx, bjaspan, catch, swentel, recidive et al: next generation database layer for Drupal 7. 2008-08-21 19:36:39 +00:00
Dries Buytaert 0e79597812 - Patch #268148 by obsidiandesign: make the simpletests work on https. 2008-08-18 19:25:52 +00:00
Dries Buytaert e2825f474b - Patch #293099 by boombatower: clarify form documentation and error handling. 2008-08-18 18:40:07 +00:00
Dries Buytaert c639b5135f - Patch #295564 by boombatower, Damien Tournoud: fixed drupal_http_request error and cleaned up some simpletest stuff. We should have a much more funky 'all tests passed' screen. Having all tests pass shouldn't be this boring. Let's be a bit more creative and injest some fun ... ;-) 2008-08-16 07:31:01 +00:00
Dries Buytaert db8215e5ec - Patch #231190 by Dries: drupalHead repeated twice. Oops. 2008-07-18 07:30:34 +00:00
Dries Buytaert fb3b6d13b8 - Patch #231190 by eli, mfb: page cache didn't work with HEAD requests. 2008-07-17 21:10:39 +00:00
Dries Buytaert 48955b3754 - Patch #253506 by Damien Tournoud, catch, et al: fixed contact.text. 2008-07-05 07:19:31 +00:00
Dries Buytaert fe06b4ccd8 - Patch #276581 by catch: wrote missing tests for contact module and simplified contact module thanks to that. Also removed some whitespace. 2008-07-02 20:05:11 +00:00
Dries Buytaert a009417189 - Patch #277586 by chx: call setUp for each test method. 2008-07-02 19:34:13 +00:00
Dries Buytaert 929b2c599c - Patch #277621 by Damien Tournoud: drupalGet was not working correctly. 2008-07-02 19:20:58 +00:00
Dries Buytaert d7c32183e5 - Patch #275396 by Moshe: removed some dead code, and added url() options to drupalPost(). 2008-06-26 19:31:31 +00:00
Dries Buytaert 9b82787b22 - Patch #243773 by chx, catch, boombatower, yched, dmitrig01, et al: use the batch API for running the tests instead of an all-in-one approach. Great work. 2008-06-24 21:51:03 +00:00
Dries Buytaert 0889c01d21 - Patch #270053 by pwolanin: fixed undefined index. 2008-06-17 01:12:50 +00:00
Dries Buytaert 3020deb421 - Patch #266178 by boombatower: SimpleTest internal browser no longer handles element ids. 2008-06-10 19:39:29 +00:00
Dries Buytaert ecb032a239 - Patch #151902 by MadHarold et al: a better format_size() (and removed some excessive white space). 2008-06-09 08:11:45 +00:00
Dries Buytaert caa2e7e1d1 - Patch #267308 by boombatower: check permissions to make sure they are avlid. 2008-06-08 19:09:50 +00:00
Dries Buytaert 5c9d4b9c97 - Patch #253506 by Daniel, flobruit and catch: made the upload tests work. 2008-06-06 10:36:45 +00:00
Dries Buytaert b87b7c2d01 - Patch #265040 by flobruit: Remove drupalModuleEnable() from simpletest. 2008-06-05 21:55:45 +00:00
Dries Buytaert d722c96909 - Patch #265498 by boombatower et al: tearDown() doesn't reset the module list. 2008-06-03 19:53:42 +00:00
Dries Buytaert cccf98aaa0 - Patch #265809 by dropcube: fixed some typos. 2008-06-03 13:45:07 +00:00
Dries Buytaert 24d27b88c7 - Patch #260501 by cwgordon7: made the trigger module tests pass. 2008-06-02 17:39:12 +00:00
Dries Buytaert ddea5c448d - Patch #260882 by boombatower: refresh variables after install and page requests. This actually fixes one failure. 2008-05-28 13:11:11 +00:00
Dries Buytaert 25a5bf9fc3 - Patch #261843 by dropcube: tests fail when a response of zero bytes is received. 2008-05-26 17:36:08 +00:00
Dries Buytaert 3bbd9a7fa4 - Patch #260812 by boombatower: add failure message to DrupalWebTestCase->parse(). 2008-05-22 19:32:52 +00:00
Dries Buytaert 83601ea040 - Patch #260383 by webchick: better debugging for form errors in simpletest. 2008-05-20 20:28:05 +00:00
Dries Buytaert a628fe811e - Patch #246259 by boombatower and saxofaan: enabling/disabling modules doesn't check for failures. 2008-05-16 02:09:22 +00:00
Dries Buytaert bdf980c40b - Patch by boombatower: fixed code style of simpletests. 2008-05-10 06:55:09 +00:00
Dries Buytaert b9f1018ea4 - Patch #73874 by pwolanin: normalize the permissions table and wrote simpletests for the (new) permission handling. At last. 2008-05-07 19:34:24 +00:00
Dries Buytaert 917b27d688 - Patch #252365 by boombatower: clean up the temporary directory that gets creating during the test runs. 2008-04-30 06:45:43 +00:00
Dries Buytaert 2813062be7 - Patch #251631 by chx: fixed behavior of the Drupal web test case with regard to POST and GET operations. 2008-04-28 08:36:06 +00:00
Dries Buytaert ffc0e93c4e - Added a test framework to Drupal along with a first batch of tests for
Drupal core!  This is an important milestone for the project so enable
  the module and check it out ... :)

  Thanks to Rok Žlender, Károly Négyesi, Jimmy Berry, Kevin Bridges, Charlie
  Gordon, Douglas Hubler, Miglius Alaburda, Andy Kirkham, Dimitri13, Kieran
  Lal, Moshe Weitzman, and the many other people that helped with testing
  over the past years and that drove this home.

  It all works but it is still rough around the edges (i.e. documentation
  is still being written, the coding style is not 100% yet, a number of
  tests still fail) but we spent the entire weekend working on it in Paris
  and made a ton of progress.  The best way to help and to get up to speed,
  is to start writing and contributing some tests ... as well as fixing
  some of the failures.

  For those willing to help with improving the test framework, here are
  some next steps and issues to resolve:

    - How to best approach unit tests and mock functions?
    - How to test drupal_mail() and drupal_http_request()?
    - How to improve the admin UI so we have a nice progress bar?
    - How best to do code coverage?
    - See http://g.d.o/node/10099 for more ...
2008-04-20 18:34:43 +00:00