Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MUlt1mate committed Feb 7, 2016
1 parent 3192663 commit 2d93fb0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ The purpose of this tool is to provide an easy way to manipulate repetitive task
[Live Demo](https://cron.multimate.ru)

[![Build Status](https://travis-ci.org/MUlt1mate/cron-manager.svg?branch=master)](https://travis-ci.org/MUlt1mate/cron-manager)
[![Code Climate](https://codeclimate.com/github/MUlt1mate/cron-manager/badges/gpa.svg)](https://codeclimate.com/github/MUlt1mate/cron-manager)
[![Test Coverage](https://codeclimate.com/github/MUlt1mate/cron-manager/badges/coverage.svg)](https://codeclimate.com/github/MUlt1mate/cron-manager/coverage)

## How this is works
Replace all tasks in crontab file with one which will invoke method ```TaskRunner::checkAndRunTasks()```.
Expand Down
Binary file modified src/DbHelper.php
Binary file not shown.
30 changes: 30 additions & 0 deletions tests/DbHelperTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
namespace mult1mate\crontab_tests;

use mult1mate\crontab\DbHelper;

/**
* @author mult1mate
* Date: 07.02.16
* Time: 18:17
*/
class DbHelperTest extends \PHPUnit_Framework_TestCase
{
public function testGetReportSql()
{
$sql = DbHelper::getReportSql();
$this->assertTrue(is_string($sql));
}

public function testTableTasksSql()
{
$sql = DbHelper::tableTasksSql();
$this->assertTrue(is_string($sql));
}

public function testTableTaskRunsSql()
{
$sql = DbHelper::tableTaskRunsSql();
$this->assertTrue(is_string($sql));
}
}

0 comments on commit 2d93fb0

Please sign in to comment.