+++ b/tests/src/Kernel/DOComputedFieldsTest.php
@@ -0,0 +1,67 @@
+ $paren...

Contribution Date
Technology
Contribution Project
Contribution Details
  1. +++ b/tests/src/Kernel/DOComputedFieldsTest.php @@ -0,0 +1,67 @@ + $parent->value->willReturn($username);

    Prophesize doesn't mock properties. For this to work, we should change the code to use a method and mock that method here.

  2. +++ b/tests/src/Kernel/DOComputedFieldsTest.php @@ -0,0 +1,67 @@ + case 'contributions':

    I think all of the cases are dropping through here. In fact, why do we need a loop and switch/case here. Why not just assert one thing after other?

Contribution Author
Files count
0
Patches count
0