# |
Jun 30th 2017, 08:08 |
laahudra |
hmic right |
# |
Jun 30th 2017, 08:06 |
hmic |
make yourself clear whats the difference - just try and see if you are in doubt :p |
# |
Jun 30th 2017, 08:06 |
hmic |
*not* redrect |
# |
Jun 30th 2017, 08:05 |
hmic |
you pipe, redirect, yes i'm sure |
# |
Jun 30th 2017, 08:05 |
laahudra |
or > |
# |
Jun 30th 2017, 08:05 |
laahudra |
| ? |
# |
Jun 30th 2017, 08:05 |
laahudra |
sure ? |
# |
Jun 30th 2017, 08:05 |
hmic |
(if you are in a linux environment, not so much on windows. but all the other things i sad before assume that too :p) |
# |
Jun 30th 2017, 08:05 |
hmic |
even then: phpunit ... | mail my@mail.address will send the output via mail... |
# |
Jun 30th 2017, 08:04 |
hmic |
you will be at the console anyways |
# |
Jun 30th 2017, 08:04 |
hmic |
if you run the tests manually, whats the deap with sending the results via mail?! |
# |
Jun 30th 2017, 08:04 |
hmic |
even a git commit hook can do that, or a cron job... |
# |
Jun 30th 2017, 08:04 |
laahudra |
simple like that |
# |
Jun 30th 2017, 08:03 |
laahudra |
You can now run PHPUnit using: $ vendor/bin/phpunit |
# |
Jun 30th 2017, 08:03 |
laahudra |
no |
# |
Jun 30th 2017, 08:03 |
hmic |
set it up to inform you of the test results |
# |
Jun 30th 2017, 08:03 |
hmic |
you will have some tool running the tests? jenkins? |
# |
Jun 30th 2017, 08:02 |
laahudra |
HEllo m8's! I jave implemented Unit Tests with cake v3.x, all loks good, but I want to send email with test results when they finish, do you have any suggestions? Someon done something similar? |
# |
Jun 30th 2017, 07:47 |
hmic |
moin |
# |
Jun 30th 2017, 04:25 |
aproapedelune |
well, i ll just enjoy the gaps in the table, then :)). ty! and good night! |
# |
Jun 30th 2017, 04:23 |
savant |
Not without resetting the autoincrement |
# |
Jun 30th 2017, 04:23 |
savant |
Nope |
# |
Jun 30th 2017, 04:22 |
aproapedelune |
is there any way to insert in table without any gaps in id? it s auto_increment, but is it possible to add in table at the first free id? |
# |
Jun 30th 2017, 04:13 |
aproapedelune |
thank you! |
# |
Jun 30th 2017, 04:13 |
cpierce |
atta boy! |
# |
Jun 30th 2017, 04:13 |
savant |
It'll get released when I'm good and drunk |
# |
Jun 30th 2017, 04:13 |
cpierce |
enjoy your beers |
# |
Jun 30th 2017, 04:12 |
cpierce |
:P |
# |
Jun 30th 2017, 04:12 |
cpierce |
@savant don't leave me hanging brother! |
# |
Jun 30th 2017, 04:12 |
cpierce |
i'm going to bed |
# |
Jun 30th 2017, 04:12 |
cpierce |
should fix you right up! |
# |
Jun 30th 2017, 04:12 |
cpierce |
`$this->primaryKey('id')'` |
# |
Jun 30th 2017, 04:12 |
savant |
In the initialize and validate stuff |
# |
Jun 30th 2017, 04:12 |
cpierce |
because your schema is id not ID |
# |
Jun 30th 2017, 04:12 |
savant |
Yeah change it to lowercase |
# |
Jun 30th 2017, 04:12 |
cpierce |
not that it should matter on create but it's missing the primaryKey |
# |
Jun 30th 2017, 04:11 |
aproapedelune |
:O |
# |
Jun 30th 2017, 04:11 |
cpierce |
``` $validator ->integer('ID') ->allowEmpty('ID', 'create'); ``` ^-- you don't have one of those bro |
# |
Jun 30th 2017, 04:11 |
cpierce |
ID vs id? |
# |
Jun 30th 2017, 04:10 |
cpierce |
in the controller part? |
# |
Jun 30th 2017, 04:10 |
cpierce |
shouldn't it be plural? |