<commit_before><?php 

namespace Edukagames\UserBundle\Tests\Entity;

use Doctrine\Bundle\DoctrineBundle\Registry;

use Edukagames\UserBundle\Entity\Alumno;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;


class AlumnoTest extends WebTestCase
{
	/**
	 * @var \Doctrine\ORM\EntityManager
	 */
	private $em;
	
	/**
	 * {@inheritDoc}
	 */
	public function setUp()
	{
		static::$kernel = static::createKernel();
		static::$kernel->boot();
		$this->em = static::$kernel->getContainer()
		->get('doctrine')
		->getEntityManager()
		;
	}
	public function testIndex()
	{
		$alumno = new Alumno();
		$alumno->setApellidos("grillo");
		$alumno->setCurso("1");
		$alumno->setDiagnostico("tdh");
		$alumno->setFechaNacimiento(date("now"));
		$alumno->setNombre("pepito");
		$alumno->setPassword("<PASSWORD>");
		$alumno->setSalt(md5($alumno->getNombre()));
		$alumno->setUserName("pegri");
		$this->$em->persist($alumno);
		$em->flush();
		
		$alumn = $this->getDotrine()->getEntityManager()->getRepository('UserBundle:Alumno')->findByNombre("pepito");
		$this->assertEquals("pepito", $alumn->getNombre());
	}
	<commit_msg>[sprint 1] Test for alumno entity complete<commit_after><?php 

namespace Edukagames\UserBundle\Tests\Entity;

use Doctrine\Bundle\DoctrineBundle\Registry;

use Edukagames\UserBundle\Entity\Alumno;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;


class AlumnoTest extends WebTestCase
{
	/**
	 * @var \Doctrine\ORM\EntityManager
	 */
	private $em;
	
	/**
	 * {@inheritDoc}
	 */
	public function setUp()
	{
		static::$kernel = static::createKernel();
		static::$kernel->boot();
		$this->em = static::$kernel->getContainer()
		->get('doctrine')
		->getEntityManager()
		;
	}
	public function testIndex()
	{
		$alumno = new Alumno();
		$alumno->setApellidos("grillo");
		$alumno->setCurso("1");
		$alumno->setDiagnostico("tdh");
		$alumno->setFechaNacimiento(new \DateTime("now"));
		$alumno->setNombre("pepito");
		$alumno->setPassword("<PASSWORD>");
		$alumno->setSalt(md5($alumno->getNombre()));
		$alumno->setUserName("pegri");

		$em = $this->em;
		$em->persist($alumno);
		$em->flush();

		$alumn = $em->getRepository('UserBundle:Alumno')->find(1);
		$this->assertEquals("pepito", $alumn->getNombre());
	}
	
{'fraction_non_alphanumeric': 0.1989247311827957, 'fraction_numerical': 0.002688172043010753, 'mean_word_length': 5.220055710306407, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '975363', 'n_tokens_mistral': 899, 'n_tokens_neox': 833, 'n_words': 105}