Support from Acquia helps fund testing for Drupal Acquia logo

Comments

iamEAP’s picture

Component: Code » Stat methods

Reorganizing under "stat methods" component.

iamEAP’s picture

Status: Active » Needs work
FileSize
0 bytes

Here's a start. Still todo, tests for:

  • StatPluginMethodBase::manageData()
  • StatPluginmethodBase::collect()

Note PHPUnit for contrib is almost broken. This'll need #2025883: Drupal's PHPUnit bootstrap.php does not register module namespaces out of /core in order to run.

iamEAP’s picture

By which, I of course mean...

iamEAP’s picture

Adding coverage for StatPluginmethodBase::collect() and cleaning up a number of other tests.

Still needs coverage on StatPluginMethodBase::manageData().

iamEAP’s picture

Status: Needs work » Needs review

Setting "needs review" to illustrate the core bug referenced in #2.

Status: Needs review » Needs work

The last submitted patch, sapi-unit_tests-statpluginmethodbase-2047321-4.patch, failed testing.

iamEAP’s picture

Status: Needs work » Needs review
FileSize
12.19 KB

Full coverage of the base class; had to do some silly wrapping of watchdog because it's not an injectable service.

Status: Needs review » Needs work

The last submitted patch, sapi-unit_tests_statpluginmethodbase-2047321-7.patch, failed testing.

iamEAP’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, sapi-unit_tests_statpluginmethodbase-2047321-7.patch, failed testing.

iamEAP’s picture

Status: Needs work » Needs review
FileSize
12.81 KB

Getting rid of the wrapper class and using the getMockForAbstractClass method. Also making those config getter/setter methods to public.

Status: Needs review » Needs work

The last submitted patch, sapi-unit_tests_statpluginmethodbase-2047321-11.patch, failed testing.

iamEAP’s picture

Status: Needs review » Needs work

The last submitted patch, sapi-unit_tests_statmethod_storage_controller-2053423-13.patch, failed testing.

iamEAP’s picture

Status: Needs work » Needs review
FileSize
12.84 KB

Anywhere the watchdog() function is already defined, the associated constants will also already be defined... So here's this.

iamEAP’s picture

Status: Needs review » Fixed

Finally committed e8a5882 + @todos for removal once watchdog is injectable or something similar.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.