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

romm / configuration_object / 17
79%

Build:
DEFAULT BRANCH: master
Ran 05 Oct 2016 01:18PM UTC
Jobs 3
Files 54
Run time 16s
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

pending completion
17

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.

815 of 850 relevant lines covered (95.88%)

12.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 17.1 (TYPO3_VERSION=7.6.9) 05 Oct 2016 01:18PM UTC 0
95.65
Travis Job 17.1
2 17.2 (TYPO3_VERSION=7.6.9) 05 Oct 2016 01:18PM UTC 0
95.65
Travis Job 17.2
3 17.3 (TYPO3_VERSION=7.6.9) 05 Oct 2016 01:18PM UTC 0
96.32
Travis Job 17.3
Source Files on build 17
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #17
  • a4db1b3f on github
  • Prev Build on master (#15)
  • Next Build on master (#23)
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