Convert variable names to camel case

[MAILPOET-1796]
This commit is contained in:
Jan Jakeš
2020-01-09 15:02:58 +01:00
committed by Jan Jakeš
parent f5da704106
commit 54549ff037
687 changed files with 15890 additions and 15887 deletions

View File

@@ -9,16 +9,16 @@ use MailPoetVendor\Idiorm\ORM;
class NewsletterPostTest extends \MailPoetTest {
public function testItCanGetLatestNewsletterPost() {
foreach (range(1, 5) as $index) {
$newsletter_post = NewsletterPost::create();
$newsletter_post->newsletter_id = 1;
$newsletter_post->post_id = $index;
$newsletter_post->save();
$newsletter_post->created_at = Carbon::now()
$newsletterPost = NewsletterPost::create();
$newsletterPost->newsletterId = 1;
$newsletterPost->postId = $index;
$newsletterPost->save();
$newsletterPost->createdAt = Carbon::now()
->addMinutes($index);
$newsletter_post->save();
$newsletterPost->save();
}
$latest_newsletter_post = NewsletterPost::getNewestNewsletterPost(1);
expect($latest_newsletter_post->post_id)->equals(5);
$latestNewsletterPost = NewsletterPost::getNewestNewsletterPost(1);
expect($latestNewsletterPost->postId)->equals(5);
}
public function _after() {