Log message #4201312

# At Username Text
# Sep 3rd 2019, 12:35 conehead Maybe I will give it another shot next week. Just seems strange that changing the fixture screws up the routing somehow
# Sep 3rd 2019, 12:33 spriz Aww, that sucks! You should throw in an issue at the repo so if anyone stumbles upon it they can see whats up :slightly_smiling_face:
# Sep 3rd 2019, 12:32 conehead Just switched back and the tests are running just fine
# Sep 3rd 2019, 12:31 conehead Well guess I cannot use Fixturize. Too many random errors I get :S
# Sep 3rd 2019, 12:19 spriz Roger that @admad
# Sep 3rd 2019, 12:19 admad @spriz it can work with older phpunit version too, just need an additional package
# Sep 3rd 2019, 12:15 conehead This helps...but feels so wrong
# Sep 3rd 2019, 12:11 spriz never checked what it does tbh
# Sep 3rd 2019, 12:11 spriz I just see it popping up sometimes in the core tests
# Sep 3rd 2019, 12:11 spriz https://github.com/cakephp/cakephp/search?q=Router%3A%3Areloadandunscoped_q=Router%3A%3Areload
# Sep 3rd 2019, 12:11 conehead But only for 2 tests (where I cannot see any difference to the other tests)
# Sep 3rd 2019, 12:10 conehead Not sure. Just strange it randomly appears
# Sep 3rd 2019, 12:10 spriz do you need to run `Router::reload()` or something alike?
# Sep 3rd 2019, 12:10 conehead `A route named "rest:elements:view" has already been connected to "/rest/v1/elements/*"."
# Sep 3rd 2019, 12:09 spriz Aha :S Nope, but we also do not use named routes! :S
# Sep 3rd 2019, 12:09 conehead @spriz maybe you have seen this problem with the ChecksumFixture? I randomly get `DuplicateNamedRouteException` when executing the tests
# Sep 3rd 2019, 11:57 spriz Ah, that has been resolved in cake 4.x though :clap:
# Sep 3rd 2019, 11:49 alexdd55976 yeah.. made that experience in a former project... also means that codecoverage can not always be 100%
# Sep 3rd 2019, 11:45 spriz AFAIK cake only really works with 5.x and 6.x of PHPUnit? :thinking_face:
# Sep 3rd 2019, 11:33 spriz @admad does pcov need phpunit 8.x? :thinking_face: Or am I misunderstanding
# Sep 3rd 2019, 11:27 slackebot correttamente’)); return $this->redirect([‘controller’ => ‘groups’, ‘action’ => ‘index’]); } else { $this->conn->rollback(); $this->Flash->error(__(‘Si e\’ verificato un errore durante l\‘associazione delle capabilities. Riprovare di nuovo.’)); }
# Sep 3rd 2019, 11:27 slackebot $this->Groups->get($groupId, [‘contain’ => [‘Capabilities’]]); $patchEntityVar = $this->Groups->patchEntity($group, $finalCapabilities); $this->log($this->Groups->Permissions->save($group), ‘debug’); if($this->Groups->save($group)){ \Cake\Cache\Cache::clearGroup(‘user_groups’, ‘user_groups’); $this->conn->commit(); $this->Flash->success(__(‘Capabilitie
# Sep 3rd 2019, 11:27 peppejaripappalardo Hello guys, Just a little help: i have a table called groups, that have associations belongsToMany to Capabilities, that join permission table. When i do save of groups I need also to save capabilities. In groups I have: id, description. In permission I have: group_id and capability_id, when I do the patchEntity i need to save the new record in permission. This is the code into the controller: $group =
# Sep 3rd 2019, 11:21 neon1024 I usually find I’ve accidentally preserved state somewhere
# Sep 3rd 2019, 11:21 neon1024 Oh I hate those!
# Sep 3rd 2019, 11:21 conehead Although one tests fails now....and only if I run all tests at the same time :P
# Sep 3rd 2019, 11:19 spriz Rocking the world AFAIK :the_horns:
# Sep 3rd 2019, 11:18 neon1024 I wonder what @jippi is doing these days
# Sep 3rd 2019, 11:18 spriz it's amazing
# Sep 3rd 2019, 11:18 neon1024 Nice plugin @spriz didn’t know about that one
# Sep 3rd 2019, 11:17 conehead Or just load all fixtures once
# Sep 3rd 2019, 11:17 conehead Even better...I do not need to load fixtures anymore!
# Sep 3rd 2019, 11:16 spriz Yay!
# Sep 3rd 2019, 11:16 conehead @spriz fixturize seems to work like a charm!
# Sep 3rd 2019, 11:14 spriz I just use xdebug that once a month when I really need a debugger and I know it slows shit down :)
# Sep 3rd 2019, 11:13 spriz personally not using coverage ¯\_(ツ)_/¯
# Sep 3rd 2019, 11:13 spriz Ah, that might be! :)
# Sep 3rd 2019, 11:12 admad @spriz don't use xdebug even if you need coverage, use pcov :slightly_smiling_face:
# Sep 3rd 2019, 11:04 conehead Usually I got xdebug disabled
# Sep 3rd 2019, 11:04 conehead I will have a look at fixturize. Thanks
# Sep 3rd 2019, 11:04 spriz With `vendor/bin/phpunit --no-coverage` though