@@ -80,7 +80,7 @@ |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | - * @return \PHPUnit_Framework_MockObject_MockObject|ResourceInterface |
|
| 83 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 84 | 84 | */ |
| 85 | 85 | private function createResourceMock() |
| 86 | 86 | { |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | ->method('dispatch') |
| 96 | 96 | ->with( |
| 97 | 97 | $this->identicalTo('lug.'.$name.'.pre_find.'.($action = 'action')), |
| 98 | - $this->callback(function (DomainEvent $event) use ($action) { |
|
| 98 | + $this->callback(function(DomainEvent $event) use ($action) { |
|
| 99 | 99 | return $event->getResource() === $this->resource |
| 100 | 100 | && $event->getData() === null |
| 101 | 101 | && $event->getAction() === 'find.'.$action; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | ->method('dispatch') |
| 108 | 108 | ->with( |
| 109 | 109 | $this->identicalTo('lug.'.$name.'.post_find.'.$action), |
| 110 | - $this->callback(function (DomainEvent $event) use ($data, $action) { |
|
| 110 | + $this->callback(function(DomainEvent $event) use ($data, $action) { |
|
| 111 | 111 | return $event->getResource() === $this->resource |
| 112 | 112 | && $event->getData() === $data |
| 113 | 113 | && $event->getAction() === 'find.'.$action; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | ->method('dispatch') |
| 139 | 139 | ->with( |
| 140 | 140 | $this->identicalTo('lug.'.$name.'.pre_find.'.($action = 'action')), |
| 141 | - $this->callback(function (DomainEvent $event) use ($action) { |
|
| 141 | + $this->callback(function(DomainEvent $event) use ($action) { |
|
| 142 | 142 | return $event->getResource() === $this->resource |
| 143 | 143 | && $event->getData() === null |
| 144 | 144 | && $event->getAction() === 'find.'.$action; |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | ->method('dispatch') |
| 154 | 154 | ->with( |
| 155 | 155 | $this->identicalTo('lug.'.$name.'.error_find.'.$action), |
| 156 | - $this->callback(function (DomainEvent $event) use ($action, $statusCode, $message) { |
|
| 156 | + $this->callback(function(DomainEvent $event) use ($action, $statusCode, $message) { |
|
| 157 | 157 | $result = $event->getResource() === $this->resource |
| 158 | 158 | && $event->getData() === null |
| 159 | 159 | && $event->getAction() === 'find.'.$action; |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | ->method('dispatch') |
| 196 | 196 | ->with( |
| 197 | 197 | $this->identicalTo('lug.'.$name.'.pre_find.'.($action = 'action')), |
| 198 | - $this->callback(function (DomainEvent $event) use ($action) { |
|
| 198 | + $this->callback(function(DomainEvent $event) use ($action) { |
|
| 199 | 199 | return $event->getResource() === $this->resource |
| 200 | 200 | && $event->getData() === null |
| 201 | 201 | && $event->getAction() === 'find.'.$action; |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | ->method('dispatch') |
| 208 | 208 | ->with( |
| 209 | 209 | $this->identicalTo('lug.'.$name.'.error_find.'.$action), |
| 210 | - $this->callback(function (DomainEvent $event) use ($action) { |
|
| 210 | + $this->callback(function(DomainEvent $event) use ($action) { |
|
| 211 | 211 | $result = $event->getResource() === $this->resource |
| 212 | 212 | && $event->getData() === null |
| 213 | 213 | && $event->getAction() === 'find.'.$action; |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | ->method('dispatch') |
| 249 | 249 | ->with( |
| 250 | 250 | $this->identicalTo('lug.'.$name.'.pre_'.($createAction = 'create')), |
| 251 | - $this->callback(function (DomainEvent $event) use ($createAction, $data) { |
|
| 251 | + $this->callback(function(DomainEvent $event) use ($createAction, $data) { |
|
| 252 | 252 | return $event->getResource() === $this->resource |
| 253 | 253 | && $event->getData() === $data |
| 254 | 254 | && $event->getAction() === $createAction; |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | ->method('dispatch') |
| 261 | 261 | ->with( |
| 262 | 262 | $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')), |
| 263 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 263 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 264 | 264 | return $event->getResource() === $this->resource |
| 265 | 265 | && $event->getData() === $data |
| 266 | 266 | && $event->getAction() === $flushAction; |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | ->method('dispatch') |
| 273 | 273 | ->with( |
| 274 | 274 | $this->identicalTo('lug.'.$name.'.post_'.$flushAction), |
| 275 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 275 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 276 | 276 | return $event->getResource() === $this->resource |
| 277 | 277 | && $event->getData() === $data |
| 278 | 278 | && $event->getAction() === $flushAction; |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | ->method('dispatch') |
| 285 | 285 | ->with( |
| 286 | 286 | $this->identicalTo('lug.'.$name.'.post_'.$createAction), |
| 287 | - $this->callback(function (DomainEvent $event) use ($data, $createAction) { |
|
| 287 | + $this->callback(function(DomainEvent $event) use ($data, $createAction) { |
|
| 288 | 288 | return $event->getResource() === $this->resource |
| 289 | 289 | && $event->getData() === $data |
| 290 | 290 | && $event->getAction() === $createAction; |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | ->method('dispatch') |
| 316 | 316 | ->with( |
| 317 | 317 | $this->identicalTo('lug.'.$name.'.pre_'.($createAction = 'create')), |
| 318 | - $this->callback(function (DomainEvent $event) use ($createAction, $data) { |
|
| 318 | + $this->callback(function(DomainEvent $event) use ($createAction, $data) { |
|
| 319 | 319 | return $event->getResource() === $this->resource |
| 320 | 320 | && $event->getData() === $data |
| 321 | 321 | && $event->getAction() === $createAction; |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | ->method('dispatch') |
| 328 | 328 | ->with( |
| 329 | 329 | $this->identicalTo('lug.'.$name.'.post_'.$createAction), |
| 330 | - $this->callback(function (DomainEvent $event) use ($data, $createAction) { |
|
| 330 | + $this->callback(function(DomainEvent $event) use ($data, $createAction) { |
|
| 331 | 331 | return $event->getResource() === $this->resource |
| 332 | 332 | && $event->getData() === $data |
| 333 | 333 | && $event->getAction() === $createAction; |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | ->method('dispatch') |
| 366 | 366 | ->with( |
| 367 | 367 | $this->identicalTo('lug.'.$name.'.pre_'.($createAction = 'create')), |
| 368 | - $this->callback(function (DomainEvent $event) use ($createAction, $data) { |
|
| 368 | + $this->callback(function(DomainEvent $event) use ($createAction, $data) { |
|
| 369 | 369 | return $event->getResource() === $this->resource |
| 370 | 370 | && $event->getData() === $data |
| 371 | 371 | && $event->getAction() === $createAction; |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | ->method('dispatch') |
| 378 | 378 | ->with( |
| 379 | 379 | $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')), |
| 380 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 380 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 381 | 381 | return $event->getResource() === $this->resource |
| 382 | 382 | && $event->getData() === $data |
| 383 | 383 | && $event->getAction() === $flushAction; |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | ->method('dispatch') |
| 390 | 390 | ->with( |
| 391 | 391 | $this->identicalTo('lug.'.$name.'.error_'.$flushAction), |
| 392 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 392 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 393 | 393 | return $event->getResource() === $this->resource |
| 394 | 394 | && $event->getData() === $data |
| 395 | 395 | && $event->getAction() === $flushAction; |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | ->method('dispatch') |
| 405 | 405 | ->with( |
| 406 | 406 | $this->identicalTo('lug.'.$name.'.error_'.$createAction), |
| 407 | - $this->callback(function (DomainEvent $event) use ($data, $createAction, $statusCode, $message) { |
|
| 407 | + $this->callback(function(DomainEvent $event) use ($data, $createAction, $statusCode, $message) { |
|
| 408 | 408 | $result = $event->getResource() === $this->resource |
| 409 | 409 | && $event->getData() === $data |
| 410 | 410 | && $event->getAction() === $createAction; |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | ->method('dispatch') |
| 454 | 454 | ->with( |
| 455 | 455 | $this->identicalTo('lug.'.$name.'.pre_'.($createAction = 'create')), |
| 456 | - $this->callback(function (DomainEvent $event) use ($createAction, $data) { |
|
| 456 | + $this->callback(function(DomainEvent $event) use ($createAction, $data) { |
|
| 457 | 457 | return $event->getResource() === $this->resource |
| 458 | 458 | && $event->getData() === $data |
| 459 | 459 | && $event->getAction() === $createAction; |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | ->method('dispatch') |
| 466 | 466 | ->with( |
| 467 | 467 | $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')), |
| 468 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 468 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 469 | 469 | return $event->getResource() === $this->resource |
| 470 | 470 | && $event->getData() === $data |
| 471 | 471 | && $event->getAction() === $flushAction; |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | ->method('dispatch') |
| 478 | 478 | ->with( |
| 479 | 479 | $this->identicalTo('lug.'.$name.'.error_'.$flushAction), |
| 480 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 480 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 481 | 481 | return $event->getResource() === $this->resource |
| 482 | 482 | && $event->getData() === $data |
| 483 | 483 | && $event->getAction() === $flushAction; |
@@ -489,7 +489,7 @@ discard block |
||
| 489 | 489 | ->method('dispatch') |
| 490 | 490 | ->with( |
| 491 | 491 | $this->identicalTo('lug.'.$name.'.error_'.$createAction), |
| 492 | - $this->callback(function (DomainEvent $event) use ($data, $createAction) { |
|
| 492 | + $this->callback(function(DomainEvent $event) use ($data, $createAction) { |
|
| 493 | 493 | $result = $event->getResource() === $this->resource |
| 494 | 494 | && $event->getData() === $data |
| 495 | 495 | && $event->getAction() === $createAction; |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | ->method('dispatch') |
| 530 | 530 | ->with( |
| 531 | 531 | $this->identicalTo('lug.'.$name.'.pre_'.($updateAction = 'update')), |
| 532 | - $this->callback(function (DomainEvent $event) use ($updateAction, $data) { |
|
| 532 | + $this->callback(function(DomainEvent $event) use ($updateAction, $data) { |
|
| 533 | 533 | return $event->getResource() === $this->resource |
| 534 | 534 | && $event->getData() === $data |
| 535 | 535 | && $event->getAction() === $updateAction; |
@@ -541,7 +541,7 @@ discard block |
||
| 541 | 541 | ->method('dispatch') |
| 542 | 542 | ->with( |
| 543 | 543 | $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')), |
| 544 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 544 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 545 | 545 | return $event->getResource() === $this->resource |
| 546 | 546 | && $event->getData() === $data |
| 547 | 547 | && $event->getAction() === $flushAction; |
@@ -553,7 +553,7 @@ discard block |
||
| 553 | 553 | ->method('dispatch') |
| 554 | 554 | ->with( |
| 555 | 555 | $this->identicalTo('lug.'.$name.'.post_'.$flushAction), |
| 556 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 556 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 557 | 557 | return $event->getResource() === $this->resource |
| 558 | 558 | && $event->getData() === $data |
| 559 | 559 | && $event->getAction() === $flushAction; |
@@ -565,7 +565,7 @@ discard block |
||
| 565 | 565 | ->method('dispatch') |
| 566 | 566 | ->with( |
| 567 | 567 | $this->identicalTo('lug.'.$name.'.post_'.$updateAction), |
| 568 | - $this->callback(function (DomainEvent $event) use ($data, $updateAction) { |
|
| 568 | + $this->callback(function(DomainEvent $event) use ($data, $updateAction) { |
|
| 569 | 569 | return $event->getResource() === $this->resource |
| 570 | 570 | && $event->getData() === $data |
| 571 | 571 | && $event->getAction() === $updateAction; |
@@ -601,7 +601,7 @@ discard block |
||
| 601 | 601 | ->method('dispatch') |
| 602 | 602 | ->with( |
| 603 | 603 | $this->identicalTo('lug.'.$name.'.pre_'.($updateAction = 'update')), |
| 604 | - $this->callback(function (DomainEvent $event) use ($updateAction, $data) { |
|
| 604 | + $this->callback(function(DomainEvent $event) use ($updateAction, $data) { |
|
| 605 | 605 | return $event->getResource() === $this->resource |
| 606 | 606 | && $event->getData() === $data |
| 607 | 607 | && $event->getAction() === $updateAction; |
@@ -613,7 +613,7 @@ discard block |
||
| 613 | 613 | ->method('dispatch') |
| 614 | 614 | ->with( |
| 615 | 615 | $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')), |
| 616 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 616 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 617 | 617 | return $event->getResource() === $this->resource |
| 618 | 618 | && $event->getData() === $data |
| 619 | 619 | && $event->getAction() === $flushAction; |
@@ -625,7 +625,7 @@ discard block |
||
| 625 | 625 | ->method('dispatch') |
| 626 | 626 | ->with( |
| 627 | 627 | $this->identicalTo('lug.'.$name.'.post_'.$flushAction), |
| 628 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 628 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 629 | 629 | return $event->getResource() === $this->resource |
| 630 | 630 | && $event->getData() === $data |
| 631 | 631 | && $event->getAction() === $flushAction; |
@@ -637,7 +637,7 @@ discard block |
||
| 637 | 637 | ->method('dispatch') |
| 638 | 638 | ->with( |
| 639 | 639 | $this->identicalTo('lug.'.$name.'.post_'.$updateAction), |
| 640 | - $this->callback(function (DomainEvent $event) use ($data, $updateAction) { |
|
| 640 | + $this->callback(function(DomainEvent $event) use ($data, $updateAction) { |
|
| 641 | 641 | return $event->getResource() === $this->resource |
| 642 | 642 | && $event->getData() === $data |
| 643 | 643 | && $event->getAction() === $updateAction; |
@@ -668,7 +668,7 @@ discard block |
||
| 668 | 668 | ->method('dispatch') |
| 669 | 669 | ->with( |
| 670 | 670 | $this->identicalTo('lug.'.$name.'.pre_'.($updateAction = 'update')), |
| 671 | - $this->callback(function (DomainEvent $event) use ($updateAction, $data) { |
|
| 671 | + $this->callback(function(DomainEvent $event) use ($updateAction, $data) { |
|
| 672 | 672 | return $event->getResource() === $this->resource |
| 673 | 673 | && $event->getData() === $data |
| 674 | 674 | && $event->getAction() === $updateAction; |
@@ -680,7 +680,7 @@ discard block |
||
| 680 | 680 | ->method('dispatch') |
| 681 | 681 | ->with( |
| 682 | 682 | $this->identicalTo('lug.'.$name.'.post_'.$updateAction), |
| 683 | - $this->callback(function (DomainEvent $event) use ($data, $updateAction) { |
|
| 683 | + $this->callback(function(DomainEvent $event) use ($data, $updateAction) { |
|
| 684 | 684 | return $event->getResource() === $this->resource |
| 685 | 685 | && $event->getData() === $data |
| 686 | 686 | && $event->getAction() === $updateAction; |
@@ -717,7 +717,7 @@ discard block |
||
| 717 | 717 | ->method('dispatch') |
| 718 | 718 | ->with( |
| 719 | 719 | $this->identicalTo('lug.'.$name.'.pre_'.($updateAction = 'update')), |
| 720 | - $this->callback(function (DomainEvent $event) use ($updateAction, $data) { |
|
| 720 | + $this->callback(function(DomainEvent $event) use ($updateAction, $data) { |
|
| 721 | 721 | return $event->getResource() === $this->resource |
| 722 | 722 | && $event->getData() === $data |
| 723 | 723 | && $event->getAction() === $updateAction; |
@@ -729,7 +729,7 @@ discard block |
||
| 729 | 729 | ->method('dispatch') |
| 730 | 730 | ->with( |
| 731 | 731 | $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')), |
| 732 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 732 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 733 | 733 | return $event->getResource() === $this->resource |
| 734 | 734 | && $event->getData() === $data |
| 735 | 735 | && $event->getAction() === $flushAction; |
@@ -741,7 +741,7 @@ discard block |
||
| 741 | 741 | ->method('dispatch') |
| 742 | 742 | ->with( |
| 743 | 743 | $this->identicalTo('lug.'.$name.'.error_'.$flushAction), |
| 744 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 744 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 745 | 745 | return $event->getResource() === $this->resource |
| 746 | 746 | && $event->getData() === $data |
| 747 | 747 | && $event->getAction() === $flushAction; |
@@ -756,7 +756,7 @@ discard block |
||
| 756 | 756 | ->method('dispatch') |
| 757 | 757 | ->with( |
| 758 | 758 | $this->identicalTo('lug.'.$name.'.error_'.$updateAction), |
| 759 | - $this->callback(function (DomainEvent $event) use ($data, $updateAction, $statusCode, $message) { |
|
| 759 | + $this->callback(function(DomainEvent $event) use ($data, $updateAction, $statusCode, $message) { |
|
| 760 | 760 | $result = $event->getResource() === $this->resource |
| 761 | 761 | && $event->getData() === $data |
| 762 | 762 | && $event->getAction() === $updateAction; |
@@ -804,7 +804,7 @@ discard block |
||
| 804 | 804 | ->method('dispatch') |
| 805 | 805 | ->with( |
| 806 | 806 | $this->identicalTo('lug.'.$name.'.pre_'.($updateAction = 'update')), |
| 807 | - $this->callback(function (DomainEvent $event) use ($updateAction, $data) { |
|
| 807 | + $this->callback(function(DomainEvent $event) use ($updateAction, $data) { |
|
| 808 | 808 | return $event->getResource() === $this->resource |
| 809 | 809 | && $event->getData() === $data |
| 810 | 810 | && $event->getAction() === $updateAction; |
@@ -816,7 +816,7 @@ discard block |
||
| 816 | 816 | ->method('dispatch') |
| 817 | 817 | ->with( |
| 818 | 818 | $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')), |
| 819 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 819 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 820 | 820 | return $event->getResource() === $this->resource |
| 821 | 821 | && $event->getData() === $data |
| 822 | 822 | && $event->getAction() === $flushAction; |
@@ -828,7 +828,7 @@ discard block |
||
| 828 | 828 | ->method('dispatch') |
| 829 | 829 | ->with( |
| 830 | 830 | $this->identicalTo('lug.'.$name.'.error_'.$flushAction), |
| 831 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 831 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 832 | 832 | return $event->getResource() === $this->resource |
| 833 | 833 | && $event->getData() === $data |
| 834 | 834 | && $event->getAction() === $flushAction; |
@@ -840,7 +840,7 @@ discard block |
||
| 840 | 840 | ->method('dispatch') |
| 841 | 841 | ->with( |
| 842 | 842 | $this->identicalTo('lug.'.$name.'.error_'.$updateAction), |
| 843 | - $this->callback(function (DomainEvent $event) use ($data, $updateAction) { |
|
| 843 | + $this->callback(function(DomainEvent $event) use ($data, $updateAction) { |
|
| 844 | 844 | $result = $event->getResource() === $this->resource |
| 845 | 845 | && $event->getData() === $data |
| 846 | 846 | && $event->getAction() === $updateAction; |
@@ -875,7 +875,7 @@ discard block |
||
| 875 | 875 | ->method('dispatch') |
| 876 | 876 | ->with( |
| 877 | 877 | $this->identicalTo('lug.'.$name.'.pre_'.($deleteAction = 'delete')), |
| 878 | - $this->callback(function (DomainEvent $event) use ($deleteAction, $data) { |
|
| 878 | + $this->callback(function(DomainEvent $event) use ($deleteAction, $data) { |
|
| 879 | 879 | return $event->getResource() === $this->resource |
| 880 | 880 | && $event->getData() === $data |
| 881 | 881 | && $event->getAction() === $deleteAction; |
@@ -887,7 +887,7 @@ discard block |
||
| 887 | 887 | ->method('dispatch') |
| 888 | 888 | ->with( |
| 889 | 889 | $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')), |
| 890 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 890 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 891 | 891 | return $event->getResource() === $this->resource |
| 892 | 892 | && $event->getData() === $data |
| 893 | 893 | && $event->getAction() === $flushAction; |
@@ -899,7 +899,7 @@ discard block |
||
| 899 | 899 | ->method('dispatch') |
| 900 | 900 | ->with( |
| 901 | 901 | $this->identicalTo('lug.'.$name.'.post_'.$flushAction), |
| 902 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 902 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 903 | 903 | return $event->getResource() === $this->resource |
| 904 | 904 | && $event->getData() === $data |
| 905 | 905 | && $event->getAction() === $flushAction; |
@@ -911,7 +911,7 @@ discard block |
||
| 911 | 911 | ->method('dispatch') |
| 912 | 912 | ->with( |
| 913 | 913 | $this->identicalTo('lug.'.$name.'.post_'.$deleteAction), |
| 914 | - $this->callback(function (DomainEvent $event) use ($data, $deleteAction) { |
|
| 914 | + $this->callback(function(DomainEvent $event) use ($data, $deleteAction) { |
|
| 915 | 915 | return $event->getResource() === $this->resource |
| 916 | 916 | && $event->getData() === $data |
| 917 | 917 | && $event->getAction() === $deleteAction; |
@@ -942,7 +942,7 @@ discard block |
||
| 942 | 942 | ->method('dispatch') |
| 943 | 943 | ->with( |
| 944 | 944 | $this->identicalTo('lug.'.$name.'.pre_'.($deleteAction = 'delete')), |
| 945 | - $this->callback(function (DomainEvent $event) use ($deleteAction, $data) { |
|
| 945 | + $this->callback(function(DomainEvent $event) use ($deleteAction, $data) { |
|
| 946 | 946 | return $event->getResource() === $this->resource |
| 947 | 947 | && $event->getData() === $data |
| 948 | 948 | && $event->getAction() === $deleteAction; |
@@ -954,7 +954,7 @@ discard block |
||
| 954 | 954 | ->method('dispatch') |
| 955 | 955 | ->with( |
| 956 | 956 | $this->identicalTo('lug.'.$name.'.post_'.$deleteAction), |
| 957 | - $this->callback(function (DomainEvent $event) use ($data, $deleteAction) { |
|
| 957 | + $this->callback(function(DomainEvent $event) use ($data, $deleteAction) { |
|
| 958 | 958 | return $event->getResource() === $this->resource |
| 959 | 959 | && $event->getData() === $data |
| 960 | 960 | && $event->getAction() === $deleteAction; |
@@ -986,7 +986,7 @@ discard block |
||
| 986 | 986 | ->method('dispatch') |
| 987 | 987 | ->with( |
| 988 | 988 | $this->identicalTo('lug.'.$name.'.pre_'.($deleteAction = 'delete')), |
| 989 | - $this->callback(function (DomainEvent $event) use ($deleteAction, $data) { |
|
| 989 | + $this->callback(function(DomainEvent $event) use ($deleteAction, $data) { |
|
| 990 | 990 | return $event->getResource() === $this->resource |
| 991 | 991 | && $event->getData() === $data |
| 992 | 992 | && $event->getAction() === $deleteAction; |
@@ -998,7 +998,7 @@ discard block |
||
| 998 | 998 | ->method('dispatch') |
| 999 | 999 | ->with( |
| 1000 | 1000 | $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')), |
| 1001 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 1001 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 1002 | 1002 | return $event->getResource() === $this->resource |
| 1003 | 1003 | && $event->getData() === $data |
| 1004 | 1004 | && $event->getAction() === $flushAction; |
@@ -1010,7 +1010,7 @@ discard block |
||
| 1010 | 1010 | ->method('dispatch') |
| 1011 | 1011 | ->with( |
| 1012 | 1012 | $this->identicalTo('lug.'.$name.'.error_'.$flushAction), |
| 1013 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 1013 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 1014 | 1014 | return $event->getResource() === $this->resource |
| 1015 | 1015 | && $event->getData() === $data |
| 1016 | 1016 | && $event->getAction() === $flushAction; |
@@ -1025,7 +1025,7 @@ discard block |
||
| 1025 | 1025 | ->method('dispatch') |
| 1026 | 1026 | ->with( |
| 1027 | 1027 | $this->identicalTo('lug.'.$name.'.error_'.$deleteAction), |
| 1028 | - $this->callback(function (DomainEvent $event) use ($data, $deleteAction, $statusCode, $message) { |
|
| 1028 | + $this->callback(function(DomainEvent $event) use ($data, $deleteAction, $statusCode, $message) { |
|
| 1029 | 1029 | $result = $event->getResource() === $this->resource |
| 1030 | 1030 | && $event->getData() === $data |
| 1031 | 1031 | && $event->getAction() === $deleteAction; |
@@ -1068,7 +1068,7 @@ discard block |
||
| 1068 | 1068 | ->method('dispatch') |
| 1069 | 1069 | ->with( |
| 1070 | 1070 | $this->identicalTo('lug.'.$name.'.pre_'.($deleteAction = 'delete')), |
| 1071 | - $this->callback(function (DomainEvent $event) use ($deleteAction, $data) { |
|
| 1071 | + $this->callback(function(DomainEvent $event) use ($deleteAction, $data) { |
|
| 1072 | 1072 | return $event->getResource() === $this->resource |
| 1073 | 1073 | && $event->getData() === $data |
| 1074 | 1074 | && $event->getAction() === $deleteAction; |
@@ -1080,7 +1080,7 @@ discard block |
||
| 1080 | 1080 | ->method('dispatch') |
| 1081 | 1081 | ->with( |
| 1082 | 1082 | $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')), |
| 1083 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 1083 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 1084 | 1084 | return $event->getResource() === $this->resource |
| 1085 | 1085 | && $event->getData() === $data |
| 1086 | 1086 | && $event->getAction() === $flushAction; |
@@ -1092,7 +1092,7 @@ discard block |
||
| 1092 | 1092 | ->method('dispatch') |
| 1093 | 1093 | ->with( |
| 1094 | 1094 | $this->identicalTo('lug.'.$name.'.error_'.$flushAction), |
| 1095 | - $this->callback(function (DomainEvent $event) use ($flushAction, $data) { |
|
| 1095 | + $this->callback(function(DomainEvent $event) use ($flushAction, $data) { |
|
| 1096 | 1096 | return $event->getResource() === $this->resource |
| 1097 | 1097 | && $event->getData() === $data |
| 1098 | 1098 | && $event->getAction() === $flushAction; |
@@ -1104,7 +1104,7 @@ discard block |
||
| 1104 | 1104 | ->method('dispatch') |
| 1105 | 1105 | ->with( |
| 1106 | 1106 | $this->identicalTo('lug.'.$name.'.error_'.$deleteAction), |
| 1107 | - $this->callback(function (DomainEvent $event) use ($data, $deleteAction) { |
|
| 1107 | + $this->callback(function(DomainEvent $event) use ($data, $deleteAction) { |
|
| 1108 | 1108 | $result = $event->getResource() === $this->resource |
| 1109 | 1109 | && $event->getData() === $data |
| 1110 | 1110 | && $event->getAction() === $deleteAction; |
@@ -1136,7 +1136,7 @@ discard block |
||
| 1136 | 1136 | ->method('dispatch') |
| 1137 | 1137 | ->with( |
| 1138 | 1138 | $this->identicalTo('lug.'.$name.'.pre_'.($action = 'flush')), |
| 1139 | - $this->callback(function (DomainEvent $event) use ($action, $data) { |
|
| 1139 | + $this->callback(function(DomainEvent $event) use ($action, $data) { |
|
| 1140 | 1140 | return $event->getResource() === $this->resource |
| 1141 | 1141 | && $event->getData() === $data |
| 1142 | 1142 | && $event->getAction() === $action; |
@@ -1148,7 +1148,7 @@ discard block |
||
| 1148 | 1148 | ->method('dispatch') |
| 1149 | 1149 | ->with( |
| 1150 | 1150 | $this->identicalTo('lug.'.$name.'.post_'.$action), |
| 1151 | - $this->callback(function (DomainEvent $event) use ($action, $data) { |
|
| 1151 | + $this->callback(function(DomainEvent $event) use ($action, $data) { |
|
| 1152 | 1152 | return $event->getResource() === $this->resource |
| 1153 | 1153 | && $event->getData() === $data |
| 1154 | 1154 | && $event->getAction() === $action; |
@@ -1174,7 +1174,7 @@ discard block |
||
| 1174 | 1174 | ->method('dispatch') |
| 1175 | 1175 | ->with( |
| 1176 | 1176 | $this->identicalTo('lug.'.$name.'.pre_'.($action = 'flush')), |
| 1177 | - $this->callback(function (DomainEvent $event) use ($action) { |
|
| 1177 | + $this->callback(function(DomainEvent $event) use ($action) { |
|
| 1178 | 1178 | return $event->getResource() === $this->resource |
| 1179 | 1179 | && $event->getData() === null |
| 1180 | 1180 | && $event->getAction() === $action; |
@@ -1186,7 +1186,7 @@ discard block |
||
| 1186 | 1186 | ->method('dispatch') |
| 1187 | 1187 | ->with( |
| 1188 | 1188 | $this->identicalTo('lug.'.$name.'.post_'.$action), |
| 1189 | - $this->callback(function (DomainEvent $event) use ($action) { |
|
| 1189 | + $this->callback(function(DomainEvent $event) use ($action) { |
|
| 1190 | 1190 | return $event->getResource() === $this->resource |
| 1191 | 1191 | && $event->getData() === null |
| 1192 | 1192 | && $event->getAction() === $action; |
@@ -1213,7 +1213,7 @@ discard block |
||
| 1213 | 1213 | ->method('dispatch') |
| 1214 | 1214 | ->with( |
| 1215 | 1215 | $this->identicalTo('lug.'.$name.'.pre_'.($action = 'flush')), |
| 1216 | - $this->callback(function (DomainEvent $event) use ($action) { |
|
| 1216 | + $this->callback(function(DomainEvent $event) use ($action) { |
|
| 1217 | 1217 | return $event->getResource() === $this->resource |
| 1218 | 1218 | && $event->getData() === null |
| 1219 | 1219 | && $event->getAction() === $action; |
@@ -1228,7 +1228,7 @@ discard block |
||
| 1228 | 1228 | ->method('dispatch') |
| 1229 | 1229 | ->with( |
| 1230 | 1230 | $this->identicalTo('lug.'.$name.'.error_'.$action), |
| 1231 | - $this->callback(function (DomainEvent $event) use ($action, $statusCode, $message) { |
|
| 1231 | + $this->callback(function(DomainEvent $event) use ($action, $statusCode, $message) { |
|
| 1232 | 1232 | $result = $event->getResource() === $this->resource |
| 1233 | 1233 | && $event->getData() === null |
| 1234 | 1234 | && $event->getAction() === $action; |
@@ -1266,7 +1266,7 @@ discard block |
||
| 1266 | 1266 | ->method('dispatch') |
| 1267 | 1267 | ->with( |
| 1268 | 1268 | $this->identicalTo('lug.'.$name.'.pre_'.($action = 'flush')), |
| 1269 | - $this->callback(function (DomainEvent $event) use ($action) { |
|
| 1269 | + $this->callback(function(DomainEvent $event) use ($action) { |
|
| 1270 | 1270 | return $event->getResource() === $this->resource |
| 1271 | 1271 | && $event->getData() === null |
| 1272 | 1272 | && $event->getAction() === $action; |
@@ -1278,7 +1278,7 @@ discard block |
||
| 1278 | 1278 | ->method('dispatch') |
| 1279 | 1279 | ->with( |
| 1280 | 1280 | $this->identicalTo('lug.'.$name.'.error_'.$action), |
| 1281 | - $this->callback(function (DomainEvent $event) use ($action) { |
|
| 1281 | + $this->callback(function(DomainEvent $event) use ($action) { |
|
| 1282 | 1282 | $result = $event->getResource() === $this->resource |
| 1283 | 1283 | && $event->getData() === null |
| 1284 | 1284 | && $event->getAction() === $action; |