• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

romm / configuration_object / 17 / 2
79%
master: 79%

Build:
DEFAULT BRANCH: master
Ran 05 Oct 2016 01:18PM UTC
Files 54
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Oct 2016 01:16PM UTC coverage: 95.652% (-0.7%) from 96.317%
TYPO3_VERSION=7.6.9

push

travis-ci

romm
[BUGFIX] Fix validators messages translation fatal error in external unit tests

The function `translateErrorMessage()` of an Extbase validator would cause a
fatal error because of its usage of `LocalizationUtility` (which tries to access
TYPO3 database).

The solution was to intercept the validator creation in the mocked object
manager, and return a mocked validator instead.

It means that when an error is returned during the creation of a
configuration object, the message will not be translated, but look like this:
`LLL:$extension:$key` where `$extension` is the name of the extension
containing the translation, and `$key` the key of the translation reference.

The test `ValidatorResolverTest` had to be refactored a bit to be compatible
with the new way of working with validators during unit testing. It has no
incidence on the logic of the test.

792 of 828 relevant lines covered (95.65%)

4.34 hits per line

Source Files on job 17.2 (TYPO3_VERSION=7.6.9)
  • Tree
  • List 0
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17
  • Travis Job 17.2
  • a4db1b3f on github
  • Prev Job for TYPO3_VERSION=7.6.9 on master (#15.3)
  • Next Job for TYPO3_VERSION=7.6.9 on master (#23.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc