With patch
Drupal test run
---------------
Tests to be run:
- Locking framework tests (Drupal\system\Tests\Lock\LockFunctionalTest)
- Locking framework unit tests (Drupal\system\Tests\Lock\LockUnitTest)
Test run started:
Monday, January 21, 2013 - 21:38
Test summary
------------
Locking framework tests 18 passes, 0 fails, and 0 exceptions
Locking framework unit tests 9 passes, 0 fails, and 0 exceptions
Test run duration: 7 sec
real 0m7.640s
user 0m4.466s
sys 0m0.361s
Without patch
Drupal test run
---------------
Tests to be run:
- Locking framework tests (Drupal\system\Tests\Lock\LockFunctionalTest)
Test run started:
Monday, January 21, 2013 - 21:43
Test summary
------------
Locking framework tests 29 passes, 0 fails, and 0 exceptions
Test run duration: 17 sec
real 0m17.828s
user 0m12.636s
sys 0m0.829s
The two extra assertions are is that system_test module is enable for each of the test functions moved the unit test and it doesn't need to be.
Comments
Comment #1
alexpottGo bot...
Comment #2
sunComment #3
dawehnerAweseome, this seems to be nearly RTBC already.
Nitpick alarm!! Missing \
I'm wondering whether this could should better use $this->container->get('lock');
Comment #4
alexpottThanks for the review :)
Reading @crell's nice review http://drupal.org/node/1890784#comment-7011502 ... we should make unit test more unit-y by...
The patch attached does that and fixes the nitpick too.
Comment #5
berdirThis should be fully qualified as well now. Looks great otherwise.
Comment #6
alexpottHere we go...
Comment #7
berdirGreat, looks ready to me.
Comment #9
alexpottUpgrade path tests fail... ho hum :(
Comment #10
alexpott#6: 1894960.drupal8.lock-unit-test.6.patch queued for re-testing.
Comment #11
berdirBack to RTBC.
Comment #12
berdirComment #13
catchYep. Committed/pushed to 8.x.