New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report check tests, drop very old TU directory #4766
Conversation
be422f2
to
bf61954
Compare
bf61954
to
3159e8d
Compare
3159e8d
to
8823bf3
Compare
8823bf3
to
10e1e0d
Compare
f1a27c2
to
5858535
Compare
This one targets next major because change on CommonDBRelation may have unpredictable impacts, and this needs to be tested :/ |
tests/functionnal/CommonDBTM.php
Outdated
|
||
$input = [ | ||
'contacts_id' => $idc[3], // Child 2 | ||
'suppliers_id' => $ids[3] // Child 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is wrong : should be $ids[3] // Child 2
instead of $ids[3] // Child 3
.
tests/functionnal/CommonDBTM.php
Outdated
$input=['entities_id' => -1]; | ||
$this->boolean($entity->can(-1, CREATE, $input))->isFalse("Fail: can create entity in not existing entity"); | ||
|
||
$this->boolean(\Session::changeActiveEntities('all'))->isTrue(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there is a lot of duplication in tests. From this line to line 750, only tests on 99999
are not duplicated (see lines 707 to 721).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lines from 752 to 761 are duplications too.
Fix entities tests Drop duplicated lines Wrong comment
4a18e82
to
67783bc
Compare
Goal is just to drop
tools/phpunit
directory (very first unit tests).I've tried to keep and migrate
phpunit/Framework/CommonDBTM/CanCheck.php
; some results are not the same.See commented lines in
tests/functionnal/CommonDBTM.php
at lines 543-558, 665, 671-673 and 680I cannot say if original tests were wrong, or if code/logic has changed, or...