Upgrade phpunit
Showing 5 of 21 files from the diff.
src/ArchiveAdmin.php
changed.
src/Forms/DiffTransformation.php
changed.
Other files ignored by Codecov
package.json
has changed.
client/dist/styles/bundle.css
has changed.
tests/Forms/DiffTransformationTest.php
has changed.
tests/Controllers/HistoryControllerFactoryTest.php
has changed.
.gitignore
has changed.
client/dist/js/bundle.js
has changed.
tests/ArchiveAdminTest.php
has changed.
tests/Forms/DataObjectVersionFormFactoryTest.php
has changed.
composer.json
has changed.
yarn.lock
has changed.
.travis.yml
has changed.
tests/Controllers/HistoryViewerControllerTest.php
has changed.
@@ -326,7 +326,8 @@
Loading
326 | 326 | ||
327 | 327 | foreach ($mainModels as $class => $title) { |
|
328 | 328 | $classInst = Injector::inst()->get($class); |
|
329 | - | if (ClassInfo::hasMethod($classInst, 'isArchiveFieldEnabled') |
|
329 | + | if ( |
|
330 | + | ClassInfo::hasMethod($classInst, 'isArchiveFieldEnabled') |
|
330 | 331 | && $classInst->isArchiveFieldEnabled() |
|
331 | 332 | ) { |
|
332 | 333 | $forms->push(ArrayData::create([ |
@@ -26,12 +26,12 @@
Loading
26 | 26 | /** |
|
27 | 27 | * @var string |
|
28 | 28 | */ |
|
29 | - | const FORM_NAME_VERSION = 'versionForm'; |
|
29 | + | public const FORM_NAME_VERSION = 'versionForm'; |
|
30 | 30 | ||
31 | 31 | /** |
|
32 | 32 | * @var string |
|
33 | 33 | */ |
|
34 | - | const FORM_NAME_COMPARE = 'compareForm'; |
|
34 | + | public const FORM_NAME_COMPARE = 'compareForm'; |
|
35 | 35 | ||
36 | 36 | private static $url_segment = 'historyviewer'; |
|
37 | 37 |
@@ -29,7 +29,8 @@
Loading
29 | 29 | $name = $field->getName(); |
|
30 | 30 | ||
31 | 31 | // Do not compare generated security data |
|
32 | - | if (($form = $field->getForm()) |
|
32 | + | if ( |
|
33 | + | ($form = $field->getForm()) |
|
33 | 34 | && ($securityToken = $form->getSecurityToken()) |
|
34 | 35 | && ($securityTokenName = $securityToken->getName()) |
|
35 | 36 | && $securityTokenName === $name |
Files | Complexity | Coverage |
---|---|---|
src | 143 | 42.29% |
Project Totals (13 files) | 143 | 42.29% |
346.3
10=-f0 TRAVIS_OS_NAME=linux
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.