# |
Jul 25th 2017, 14:11 |
neon1024 |
Just this test class between me and victory at the moment |
# |
Jul 25th 2017, 14:10 |
joris_ |
ha ok, was just curious :P |
# |
Jul 25th 2017, 14:10 |
neon1024 |
But if you ever need to manage and track affiliate links from your website, I could help |
# |
Jul 25th 2017, 14:09 |
neon1024 |
I could ask them, but I doubt it would be of any use to anyone, being that it’s tightly coupled to some of our internal systems |
# |
Jul 25th 2017, 14:09 |
joris_ |
That's what i meant :P |
# |
Jul 25th 2017, 14:09 |
neon1024 |
It will not be open sourced, as it belongs to my work |
# |
Jul 25th 2017, 14:08 |
neon1024 |
It already is a Cake plugin |
# |
Jul 25th 2017, 14:08 |
joris_ |
@neon1024 Gonna launch ExitLinks as a Cake plugin ? :P |
# |
Jul 25th 2017, 14:07 |
jeremyharris |
fwiw I’m working on a plugin that’ll lazy load your fixtures so you can add them all to every test and not worry about them all loading for each test case |
# |
Jul 25th 2017, 14:05 |
neon1024 |
Ah yes, I can’t as I don’t need the fixtures in all the tests |
# |
Jul 25th 2017, 14:04 |
neon1024 |
Hm, I might refactor the fixturizing into setUp |
# |
Jul 25th 2017, 14:03 |
neon1024 |
Perhaps my test class is wrong? https://pastebin.com/aH4EG4Ne |
# |
Jul 25th 2017, 14:02 |
neon1024 |
Well any test, as long as I run them in isolation |
# |
Jul 25th 2017, 14:02 |
jeremyharris |
looks a tad incomplete, so I’m spitballing here |
# |
Jul 25th 2017, 14:02 |
jeremyharris |
that doesn’t explain why the first test passes though |
# |
Jul 25th 2017, 14:01 |
jeremyharris |
maybe you need to provide a primary key? `'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]],` |
# |
Jul 25th 2017, 14:00 |
neon1024 |
It’s like it drops the table, but then doesn’t re-insert the fixtures aftwards |
# |
Jul 25th 2017, 13:59 |
neon1024 |
If I run the whole class of tests, I get failures |
# |
Jul 25th 2017, 13:59 |
neon1024 |
What’s more, if I run this test by itsself it passes |
# |
Jul 25th 2017, 13:59 |
jeremyharris |
yeah |
# |
Jul 25th 2017, 13:59 |
neon1024 |
Which would both make sense and also explain why when I pull an instance of the ExitLinks table from the TableRegistry I can get a schema instance from it |
# |
Jul 25th 2017, 13:58 |
inoas |
admad well then nvm |
# |
Jul 25th 2017, 13:56 |
neon1024 |
It’s my understanding that the fixture schema is built from the fields property |
# |
Jul 25th 2017, 13:56 |
neon1024 |
https://pastebin.com/AWaus9e4 |
# |
Jul 25th 2017, 13:56 |
admad |
inoas: discuss what? phpnut is cake's representive on fig but no one on the team is really inclined on spending time on fig discussions |
# |
Jul 25th 2017, 13:55 |
neon1024 |
..because $table->getSchema() returns a schema instance |
# |
Jul 25th 2017, 13:55 |
jeremyharris |
@neon1024 the fixture schema is in the fixture file itself, or, you are using settings that tell it to load the schema from the live database. can you gist your fixture? |
# |
Jul 25th 2017, 13:54 |
neon1024 |
Does this mean that my fixture isn’t loaded? How can I check the fixture schema? `Cake\Database\Exception: Cannot describe exit_links. It has 0 columns.` |
# |
Jul 25th 2017, 13:53 |
inoas |
Well admad, what about jose, mark story or you doing http://www.php-fig.org/members/ just as a pitch to discuss internal if you want to |
# |
Jul 25th 2017, 13:52 |
georgec |
Hi all, does anyone run migrations with MariaDB version 10.2? |
# |
Jul 25th 2017, 13:51 |
kaliel |
thank you @cleptric |
# |
Jul 25th 2017, 13:51 |
cleptric |
Have a look at `Marshaller::_buildPropertyMap` |
# |
Jul 25th 2017, 13:50 |
cleptric |
@kaliel That’s done during marshalling |
# |
Jul 25th 2017, 13:45 |
admad |
unlikely since being logged in at 2 places doesn't make sense |
# |
Jul 25th 2017, 13:44 |
inoas |
admad will you ever visit irc again ;p? |
# |
Jul 25th 2017, 13:44 |
kareylo |
maybe ... 5 ? |
# |
Jul 25th 2017, 13:34 |
kareylo |
"Need hugs ? Use CakePHP 3.x !" |
# |
Jul 25th 2017, 13:34 |
kareylo |
Need hugs. |
# |
Jul 25th 2017, 13:33 |
kareylo |
Of course ! |
# |
Jul 25th 2017, 13:33 |
neon1024 |
..and 8 of course |
# |
Jul 25th 2017, 13:33 |
neon1024 |
We should count both 1 and 2 then, so it looks like more :) |